Store Locator Shortcode

To place the store locator just create a new page and insert the following shortcode:

[wordpress_store_locator]

New from Version 1.4.1: Shortcode attributes to create multiple maps with different categories. See here how to find the store category id.

Example 1:

  • Only show category ID 34 (T-Shirts)
  • no children
  • no “show all categories”
[wordpress_store_locator categories="34" show_children="no" show_all="no"]

Example 2:

  • Show Categories 32 (Clothes) and 35 (Music Stores)
  • Show no children
  • Show “all categories”
[wordpress_store_locator categories="32,35" show_children="no" show_all="yes"]

Search for Store Shortcode

If you want to have a search for store page like in our Demo, you can create a new page or use any other like your Home page for example. Then place the Following Shortcode:

[wordpress_store_locator_search url="https://www.welaunch.io/plugins/wordpress-store-locator/demo/" style="1" show_filter="yes"]

Nearest store shortcode

You can show off the nearest shop from user location with the shortcode below. 

[wordpress_store_locator_nearest_store text_before="Nearest Store: " show_name="false" show_opening="true" text_separator=" | " denied_text="Please enable Geolocation"]

Stores Listing shortcode

Available since version 1.13.0 you can list stores by a key data field like country.

[wordpress_store_locator_listing key="country"]

Google API Key

For our plugin you will need a fully working Google API Key. A tutorial on how to get it, can be found here: https://connections-pro.com/documentation/create-google-maps-api-keys/
You need to make sure, that inside the Google Console the following options are activated:

Allow your domain to access the key
Enable: Google Places API Web Service
Enable: Google Maps JavaScript
Enable: Google Maps Geocoding

43 thoughts on “WordPress Store Locator Shortcodes

  1. DAVID RAMIREZ says:

    This address appears by default when using the shortcode:

    Rostov Oblast, Russia, 346222

    How do I remove it?

  2. Diego says:

    We install the plugin, but it is giving error all the time of Geocoder failed due to: REQUEST_DENIED. What can it be?

  3. Gill Costello says:

    Hi,
    I’ve added the API. But when I add the shortcode [wordpress_store_locator] to a page it says Publishing Failed or Updating Failed. When I hit preview I can see the store locator. So close 🙂
    Can you please help?
    Thanks,
    Gill

  4. Max says:

    Hello,

    Ive used the shortcode: [wordpress_store_locator] to place the store locator on a normal page, however regardless of where on the page I place the shortcode, the locator keeps apearing at the top of the page. I need it to appear where Ive placed the shortcode.

    I’m using the Divi theme and placing the shortcode in a module specifically designed for code such as this. I’ve tried using Modal Code Position in the settings, but this doesnt work either.

    Any help would be appreciated!
    Thanks,

  5. Vincent says:

    Is it possible to have a shortcode to display a map that shows all stores by default? I want to show every pin on a map on one page, but not on another page.

  6. Justin says:

    I’ve added the API it shows that I have stores in the system, but as soon as I go to the page that holds the shortcode, it tells me “No stores found… Try Again.” What’s going wrong?

  7. adil says:

    Please disregard my second message, I got it to work, although on firefox the map is grayscaled and unclickable, it works on safari. Also I enabled “Use Output Buffering” to display the map where it should be.

  8. Adil says:

    A thousand sorry,
    I forgot one request.

    I have two filters “Current Products” and “Legacy Products”.
    I would like to display “Current Products” for this page http://kurzweildev.zaramedia.com/dealers_test_adil/
    I would like to display “Current Products” and “Legacy Products” for this page http://kurzweildev.zaramedia.com/authorized-repair-facilities-test-adil/

    I tried to use the “Edit Store Filter” for each of these filters. Ex I gave legacy filter the category “service centers aka authorized repair facilities”. It worked for the dealer page (only current products filter shows like I wanted), but not the authorized repair facilities. It keeps the current filter only when I want in addition “legacy products.

  9. Naveen says:

    Hi,
    I need to display Get Location pointer icon inside search box instead of “get my position” under the search box. How can I do that? Is that possible for to that with any simple customization?

  10. Lis says:

    Hello, since i used another theme in wordpress the map became much smaller in width and is to the right with the stores beside it in on the left and only in one row all the way down (50 stores) instead of in two rows of 25 underneath the map.
    How can I fix this?

  11. troy says:

    i have an issue on the category end. i have it set to geolocate but there are stores in the radius missing. ive tried adding every category id to the shortcode with no avail. can u help??

    • WeLaunch says:

      Please check if all stores have a valid lat / lng and categories are assigned. What you mean with “with no avail”?

      • Troy says:

        categories are assigned and lat / lng is set and valid. i mean ive tried everything and they don’t show also i thought it might be a category issue. so i tried to make an all category but quickly realized that if you try to attached parent categories to that main category you loos the option of child categories

  12. Matt says:

    Hi, is there anyway to include a basic search box on a different page in a widget or the like, that sends the user to the desired map page? ie. when they search a city or zipcode.

  13. Jodey says:

    When embedding the shortcode for the map into a section it appears at the top of the page. Even when i place further down the website page.

Leave a Reply

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