Use the Nearest Store Shortcode

Shortcodes Viewed: 834

Below is the shortcode to display nearest store to the users location. It shows the store name + address and is linked to the single store page. Also it shows the opening hours for this store.

[wordpress_store_locator_nearest_store text_before="Nearest Store: " show_name="false" show_open="true" text_separator=" | "]


  • text_before (Default: “Nearest Store: “)
  • show_name (Default: “false”)
  • show_open (Default: “true”)
  • text_separator (Default: ” | “)

Output: Shows nearest store “address, city | opening hours”

This Post Has 7 Comments
  1. When I’m trying to save a page containing this I get the error message that made me activate output buffering in the settings. And I have activated that already for the normal shortcode wordpress_store_locator.

    I have commented that somewhere but in my experience this effect is the result of echoing shortcode output instead of returning it as you should. Took me ages to find out with one of my own plugins ๐Ÿ™‚

  2. Hi ๐Ÿ™‚

    New user of your plugin, everything seems to work great thus far! however the search bar shortcode does not work when I go live on my page. The theme is DIVI. How can i solve this?

Leave a Reply

Your email address will not be published. Required fields are marked *