Postal Code Search Returns No Results

Searching by postal codes can return unexpected results. This often happens when then search is not restricted to a single country, but also because by default the user input is always assumed to be an address. So when you provide a postal code instead, the Google Geocode API may not return the expected results. There…

Continue Reading

Move Locations From Old to a New Domain

If you need to move the WP Store Locator data from an old to a new domain, then you can do this by using the Import / Export function from WordPress itself. Old Domain Login to your WordPress dashboard Go to the tools menu and click “Export” Select “Store Locator” and click on “Download Export…

Continue Reading

Start Location From Settings Page is Ignored

If the value from the start point is ignored, then open the store locator page in the admin editor and make sure the start_location option is not included in the shortcode. Shortcode options will always overwrite values from the settings page, so if you set the start point on the settings page to for example…

Continue Reading

Change the Text and Background Colors

In some cases your theme may force the store locator to use white text on a white background, or any other unreadable color combination. To fix this you can overwrite the current style with custom CSS code. The code below will try and force the text to be black and the background of the input…

Continue Reading

Include the URL in the Search Results

Showing the URL in the search results can be done by creating a custom search results template with the wpsl_listing_template filter. If you also like to include it in the info window that opens up after the user clicks on a marker, then that’s done with the wpsl_info_window_template filter. Place the code examples below in…

Continue Reading

The Attempt to auto-locate the User Setting is Ignored

It happens in rare cases that the selected option for the ‘Attempt to auto-locate the user’ setting is ignored ( probably due to caching somewhere ). To fix this you can overwrite it with a few lines of code that have to be placed in the functions.php inside your active theme folder. To disable it…

Continue Reading