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 ReadingArchives: Document
The Map Shows Up Grey when Loaded in a Tab
If the map shows up grey when you load it inside a tab, then can solve this by using this filter. The filter code needs to go in the functions.php inside your active theme folder.
Continue Readingwpsl_map_tab_anchor
Create a Button in the Search Bar that Determines the Users Location
If you’d like to create a button in the search bar that the user can use to automatically fill in his current location, then you first need to create a custom template. In the template code look for line 13 that outputs the search input field. Below that line include the following code. This will…
Continue ReadingCreate a Featured Store That Shows Up First in the Search Results
This article explains how to create a new meta field that specifies whether or not a store is a featured one, how to make them automatically show up first in the search results, and how to optionally make the featured store stand out by changing the background color. All code used throughout this article needs…
Continue ReadingChange 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 ReadingRestrict 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 Readingwpsl_geolocation_filter_pattern
wpsl_disable_welcome_pointer
wpsl_distance_unit
This filter allows you to dynamically switch between using km and miles in the search results.
Continue Reading