Start a project

Use the Nearest Store Shortcode

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_opening="true" text_separator=" | " denied_text="Please enable Geolocation"]

Parameters:

  • text_before (Default: “Nearest Store: “)
  • show_name (Default: “false”)
  • show_opening (Default: “true”)
  • text_separator (Default: ” | “)
  • denied_text=”Please enable Geolocation”

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

Questions & answers (13)

  1. SWETISeptember 24, 2022

    Any way we can display the store name only instead of store name and address?

  2. natashaSeptember 7, 2022

    Another quick question about this – I’m using this short throughout the site. Is there a way to show the last location the user visited (through a search, for example) instead of the geolocated address? Like this for example: https://www.youfit.com/gyms

    If you click on any location, it reflects in the header as the location you visited on the site.

  3. NatashaAugust 10, 2022

    How can I use the same shortcode, twice on a single page? Right now, only one shows up…

  4. DanielAugust 10, 2022

    Please install latest version of our store locator plugin. It was released today and will add support for multi shortcode use.

  5. NatashaAugust 10, 2022

    THANK YOU!!!

  6. Mathias LoftApril 10, 2020

    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?

  7. WeLaunchApril 11, 2020

    Please send a URL with your codecanyon purchase code to [email protected]

  8. kenneth dowOctober 3, 2019

    is there a way to remove the opening hours and show the store name?

  9. WeLaunchOctober 7, 2019

    Currently not, but you can contact our customization service at [email protected]

  10. claudineiSeptember 20, 2019

    Hi everyone!
    I have a problem, with the plugin
    [wordpress_store_locator_nearest_store text_before=”Nearest Store: “]
    It’s just show.
    Nearest Store: ,
    What cude be?

  11. WeLaunchSeptember 20, 2019

    Maybe your Google API is not working?

  12. LippyJuly 26, 2019

    This is working for me, but despite the description saying it shows the store name + address it doesn’t output the store name, just the address and opening hours, which doesn’t make sense if your stores have different names in different cities.
    How can I get it to output Nearest Store: “name, address, city | opening hours” ??

  13. FloutschJuly 23, 2019

    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 🙂