Start a project

WordPress Store Locator Listing Shortcode

In version 1.13.0 we introduced a new Store locator listing shortcode. You can define a key, that you want to use for grouping (e.g. country). Then all stores within a country will display in a listing accordion by that key.

[wordpress_store_locator_listing key="country"]

The above example will list all stores by country. Of course you can use any other key like city or state if you want.

store locator listing by country
store locator listing by country

Listing Stores Arguments

All arguments you can use in the shortcode:

  • open_by_default => ‘yes’,
  • Group listing key (e.g. country)
    key
  • Order key by
    key_orderby => ‘pm.meta_value’,
  • Only show key with this value (e.g. US)
    value
  • heading_prefix => ‘Stores in ‘,
  • Show a subkey (e.g. “region”)
    subkey
  • Order Subkey Data (e.g. pm.meta_value)
    subkey_orderby
  • Only show subkey with this value (e.g. Texas)
    subvalue
  • Prefix for subkey Heading (e.g. State:)
    subheading_prefix
  • Category ID filtering
    category
[wordpress_store_locator_listing key="country" value="US" subkey="region" subvalue="Texas" heading_prefix="Stores in " order_by="pm.meta_value" subheading_prefix="State: "]
listing example with us and texas stores only

Questions & answers (6)

  1. JpOctober 21, 2022

    hi, can i add a “store details page” button in every element of listing?

  2. Giuseppe Di CapuaDecember 6, 2022

    can u help please with my last question?

  3. AlmedinJanuary 26, 2022

    How I can show all stores per country? Now this shortcode shows only 5 stores per country.

  4. DanielJanuary 26, 2022

    You must have something wrong with your data then. the shortcode will show ALL stores.

  5. AlmedinFebruary 2, 2022

    Greetings Daniel, we have checked all the data on our side and everything works fine and everything is categorized as it should be. Here is the link if you can please check we would be very grateful.

    https://rmf-moebel.com/haendlern/

    Thank you.

  6. DanielFebruary 2, 2022

    Please submit a ticket on our website for support. Thanks