// Get the value of the ‘lang’ field (ACF) from the current post $PEID = get_field(‘PEID’); if ($PEID) { $encoded_peid = urlencode($PEID); $dashboard_url = “https://imb.maps.arcgis.com/apps/dashboards/cd8bf39013bb42f2b7361219e533dec0#aPEID={$encoded_peid}”; //$dashboard_url = “https://imb.maps.arcgis.com/apps/dashboards/02e41687079246e6843bce695da0af8e#aPEID={$encoded_peid}”; echo ‘ ‘; echo ‘‘; echo ‘ ‘; } else { echo…Continue reading
echo do_shortcode( ‘[pg_profile_map]’ );Continue reading
echo do_shortcode( ‘[pg_profile_map]’ );Continue reading
echo do_shortcode( ‘[pg_profile_map]’ );Continue reading
/* * Snippet #62 (ID 35781): Countries of the World Mapbox map (shortcode) – Affinities * Type: php * Status: publish * Location: 1 * Modified: 2025-09-18 15:31:56 * * FIX 2026-08-09: hardcoded Mapbox access token replaced with get_option( ‘pg_mapbox_token’,…Continue reading
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