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.
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
[wordpress_store_locator_listing key="country" value="US" subkey="region" subvalue="Texas" heading_prefix="Stores in " order_by="pm.meta_value" subheading_prefix="State: "]
How I can show all stores per country? Now this shortcode shows only 5 stores per country.
You must have something wrong with your data then. the shortcode will show ALL stores.
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.
Please submit a ticket on our website for support. Thanks
hi, can i add a “store details page” button in every element of listing?
can u help please with my last question?