wpsl_skip_cpt_template

This filter allows you to disable the shortcode output used to create the default single store pages. This can prevents the map and address details from showing up twice in some situations.

Continue Reading

Change the Marker Cluster Images

The images below are the default images used in the marker clusters. The blue image on the left is used when there are only a few locations, the purple image on the right is used when there are thousands of locations, and everything in between is used when there are a few dozen, or hundreds…

Continue Reading

Restrict the Search Results to Different Countries

If your locations are spread across the world, and you’ve created individual pages for each country, then it’s possible to restrict the search results on each page to a specific country. The code below checks if the current page matches with either ‘store-locations-australia’ or ‘store-locations-germany’ ( replace this with the slug from your own pages…

Continue Reading