/* * Snippet #87 (ID 36598): People Groups of the World Mapbox code (ArcGIS API) GSEC * Type: php * Status: publish * Location: 1 * Modified: 2025-09-17 02:59:39 * * FIX 2026-08-09: queryBase pointed at a dead ArcGIS service…Continue reading
function fcbh_display_language_link() { global $wpdb; // Get the ACF field ‘rol’ from current post $post_id = get_the_ID(); $rol = get_field(‘rol’, $post_id); $language = get_field(‘lang’, $post_id); if (empty($rol)) { return ‘ No language code (ROL) found for this post. ‘; }…Continue reading
/* * Snippet #77 (ID 36410): Countries of the World Mapbox map (shortcode) – Dying Daily * Type: php * Status: publish * Location: 1 * Modified: 2025-09-17 03:10:13 * * FIX 2026-08-09: hardcoded Mapbox access token replaced with get_option(…Continue reading
function fcbh_display_language_link() { // Get the ACF field ‘rol’ from current post $post_id = get_the_ID(); $rol = get_field(‘ROL’, $post_id); //$language = get_field(‘lang’, $post_id); if ($rol) { $rol_value = esc_attr($rol); // Construct the Ninja Tables shortcode $ninja_shortcode = ‘[ninja_tables id=”36443″ filter=”‘…Continue reading
// Pull one random row from each framework category (L, G, C, M) function get_random_prayer_rows() { static $rows = null; if ($rows === null) { global $wpdb; $table = ‘prayer_requests’; // no prefix $frameworks = [‘L’, ‘G’, ‘C’, ‘M’]; $rows…Continue reading
function arcgis_field_shortcode($atts) { $atts = shortcode_atts(array( ‘field’ => ”, ), $atts, ‘arcgis_field’); if (empty($atts[‘field’])) { return ‘No field specified’; } // Get ISOa3 from current post $iso = get_field(‘ISOa3’); if (empty($iso)) { return ‘ISOa3 not set’; } // Build query…Continue reading
function get_filtered_ninja_table_shortcode() { if (isset($_GET[‘filter’])) { // Decode and trim the input $raw_input = urldecode(trim($_GET[‘filter’])); // Check for specific values before sanitizing if ($raw_input === ‘UPG’) { $search_term = ‘Engaged yet Unreached’; } elseif ($raw_input === ‘UUPG’) { $search_term =…Continue reading
/* * Snippet #98 (ID 37755): ROP level trees * Type: php * Status: publish * Location: 1 * Modified: 2026-02-24 22:25:10 * * FIX 2026-08-09: every SQL query in this file referenced pre-migration * column names (ROP1Code, ROP2Code, ROP3Code,…Continue reading
/* * Snippet: Random Unreached People Group — AJAX Field Loader * Type: php * Location: frontend_only * Tags: generate-shortcodes, random-people-group * * Selects a random people group (SPI = 0) via a WordPress AJAX endpoint. * Shortcodes output placeholder…Continue reading
/* * Snippet #101 (ID 37767): People Groups of the World Mapbox – LPI * Type: php * Status: publish * Location: 1 * Modified: 2026-03-24 17:49:22 * * FIX 2026-08-09: hardcoded Mapbox access token replaced with get_option( ‘pg_mapbox_token’, ”…Continue reading