Language Profile Page – Generate shortcodes for ACFs

function get_language_field_values($atts) { // Extract attributes $atts = shortcode_atts(array( ‘field_name’ => ”, ‘slug_output’ => ‘false’, ), $atts, ‘language_fields’); // Get the current post ID $post_id = get_the_ID(); $output = ”; $output = ”; $show_optional_note = false; if (get_post_type($post_id) === ‘language’)…Continue reading

Countries of the World Mapbox map (shortcode) GSEC

/* * Snippet #53 (ID 35646): Countries of the World Mapbox map (shortcode) GSEC * Type: php * Status: publish * Location: 1 * Modified: 2025-09-17 03:07:47 * * FIX 2026-08-09: hardcoded Mapbox access token replaced with get_option( ‘pg_mapbox_token’, ”…Continue reading

People Group Profile page – ArcGIS dashboard map – output via PEID var

// 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