Short admin / code recipes migrated from the legacy tutorial library and rewritten for Ultimate.
Change the “Toggle carousel” button text
add_filter( 'cspm_toggle_carousel_text', function () {
return __( 'Show / hide listings', 'your-textdomain' );
} );
Use Street View imagery as carousel thumbnails
When a location has Street View coverage, some setups can prefer Street View stills over the featured image for carousel cards. Check Carousel items settings for Street View / image source options on your map. If only a filter exists in your build, search Ultimate for streetview + carousel filters and hook accordingly.
Fallback: keep featured images and open [cspm_streetview_map] on the single template — see Center marker on load.
Keyword search without the Keyword Search module UI
For simple “show these posts”, prefer [cspm_main_map post_ids="…"] or Override map query. For visitor keyword UX, enable Keyword Search or Advanced Search.
Progress Map metabox on Envira Gallery screens
To show Ultimate’s location metabox on another CPT / plugin screen (historically Envira Gallery):
add_filter( 'cspm_normal_high_metaboxes', function ( $post_types ) {
$post_types[] = 'envira'; // example CPT slug
return $post_types;
} );
Also add that slug under Plugin settings → Post types. Adapt the slug to your CPT.
Map language from the URL
On multilingual sites, set the Google Maps language from the current request (WPML/language segment). Hook early map localization settings / cspm language filters in your build so hl matches the page language. Prefer WPML + Ultimate’s documented language field when available — see Getting started / WPML notes in core first steps.
Open Nearby Places map in a modal
On a location’s Format & Media, choose the nearby-places format when available, or link a custom modal that embeds [cs_nearby_map] for that post context. Requires the Nearby Places module.
Add custom CSS classes to infoboxes
add_filter( 'cspm_infobox_custom_class', function ( $class, $args ) {
return trim( $class . ' my-infobox-theme' );
}, 10, 2 );
Style .my-infobox-theme in your child theme.
