function get_filtered_ninja_table_shortcode() { // Ensure we’re on a single post or page if ( !is_singular() ) { return; } // Get the global post object to reliably get the ID global $post; $post_id = $post->ID; // Check if the Advanced…Continue reading
// Helper function to get a value from the summary table function get_pg_summary_value($field_name) { global $wpdb; $valid_fields = [ ‘total_pop’, ‘total_pgs’, ‘total_uupgs’, ‘total_uupg_pop’, ‘total_upgs’, ‘total_upg_pop’, ‘total_nupgs’, ‘total_nupgs_pop’, ‘extra1’, ‘extra2’, ]; // Prevent SQL injection by only allowing known fields if…Continue reading
// Helper function to get a value from the summary table function get_pg_summary_value($field_name) { global $wpdb; $valid_fields = [ ‘total_pop’, ‘total_pgs’, ‘total_uupgs’, ‘total_uupg_pop’, ‘total_upgs’, ‘total_upg_pop’, ‘total_nupgs’, ‘total_nupgs_pop’, ‘extra1’, ‘extra2’, ]; // Prevent SQL injection by only allowing known fields if…Continue reading
/* * Snippet #81 (ID 36451): People Groups of the World Mapbox code (ArcGIS API) UUPGs * Type: php * Status: publish * Location: 1 * Modified: 2026-01-12 21:12:33 * * FIX 2026-08-09: queryBase pointed at a dead ArcGIS service…Continue reading
/* * Snippet #84 (ID 36531): People Groups of the World Mapbox code (ArcGIS API) Frontier (LPI0) * Type: php * Status: publish * Location: 1 * Modified: 2025-09-17 03:11:08 * * FIX 2026-08-09: queryBase pointed at a dead ArcGIS…Continue reading
/* * Snippet #85 (ID 36532): People Groups of the World Mapbox code (ArcGIS API) Pioneer (LPI1) * Type: php * Status: publish * Location: 1 * Modified: 2025-09-17 03:12:04 * * FIX 2026-08-09: queryBase pointed at a dead ArcGIS…Continue reading
/* * Snippet #86 (ID 36568): Countries of the World Mapbox map (shortcode) – Dying Daily – Percentages * Type: php * Status: publish * Location: 1 * Modified: 2025-09-17 03:14:15 * * FIX 2026-08-09: hardcoded Mapbox access token replaced…Continue reading
/* * 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