{"id":3971,"date":"2017-08-31T14:36:43","date_gmt":"2017-08-31T12:36:43","guid":{"rendered":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/?post_type=faq&#038;p=380"},"modified":"2025-07-21T20:07:45","modified_gmt":"2025-07-21T18:07:45","slug":"wordpress-store-locator-shortcodes","status":"publish","type":"faq","link":"https:\/\/www.welaunch.io\/en\/knowledge-base\/faq\/wordpress-store-locator-shortcodes\/","title":{"rendered":"WordPress Store Locator Shortcodes"},"content":{"rendered":"<h2>Store Locator Shortcode<\/h2>\n<p>To place the store locator just create a new page and insert the following shortcode:<\/p>\n<pre>[wordpress_store_locator]<\/pre>\n<p>Parameters you can use:<\/p>\n<pre>categories\r\nDefault: 'all'\u00a0\r\nValues: Category IDs separated by comma, that should show\r\n\r\ndefault_category\r\nDefault: '',\r\nValues: ID of a default category to be preselected<\/pre>\n<p>default_lat<br \/>\nDefault: &#8221;,<br \/>\nValues: Flaotval<\/p>\n<p>default_lng<br \/>\nDefault: &#8221;,<br \/>\nValues: Flaotval<\/p>\n<p>default_zoom<br \/>\nDefault: &#8221;,<br \/>\nValues: Number 1 to 16<br \/>\nfilters<br \/>\nDefault: &#8216;all&#8217;,<br \/>\nValues: Filters IDs separated by comma (must contain parent filter ID)<br \/>\ndefault_filters<br \/>\nDefault:<br \/>\nValues: Filters IDs seperated by comma<br \/>\nshow_children<br \/>\nWhen you use categories parameter show subcategories automatically<br \/>\nDefault: &#8216;yes&#8217;,<br \/>\nValues: yes or no<br \/>\nshow_all<br \/>\nDefault: &#8216;yes&#8217;,<br \/>\nValues: yes or no (Shows the all stores category)<br \/>\nmax_radius<br \/>\nDefault: &#8216;no&#8217;,<br \/>\nValue: Integer \/ Number Radius<br \/>\ndefault_address<br \/>\nDefault: &#8221;,<br \/>\nValue: Adress (Street, City)<\/p>\n<h3>Show only specific categories<\/h3>\n<p>New from Version 1.4.1, you can specify different store categories in our shortcode to show only stores within a specific category. See here <a href=\"https:\/\/www.welaunch.io\/en\/knowledge-base\/faq\/where-to-find-the-category-id\/\">how to find the store category id<\/a>. If that does not work, please read <a href=\"https:\/\/www.welaunch.io\/en\/knowledge-base\/faq\/store-locator-category-paramter-not-working\/\">why store locator category parameter is not working<\/a>.<\/p>\n<p>Example 1:<\/p>\n<ul>\n<li>Only show category ID 34 (T-Shirts)<\/li>\n<li>no children<\/li>\n<li>no &#8220;show all categories&#8221;<\/li>\n<\/ul>\n<pre>[wordpress_store_locator categories=\"34\" show_children=\"no\" show_all=\"no\"]<\/pre>\n<p>Example 2:<\/p>\n<ul>\n<li>Show Categories 32 (Clothes) and 35 (Music Stores)<\/li>\n<li>Show no children<\/li>\n<li>Show &#8220;all categories&#8221;<\/li>\n<li>default_address<\/li>\n<\/ul>\n<pre>[wordpress_store_locator default_address=\"New York\" categories=\"32,35\" show_children=\"no\" show_all=\"yes\"]<\/pre>\n<h2>Search for Store Shortcode<\/h2>\n<p>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:<\/p>\n<pre>[wordpress_store_locator_search url=\"https:\/\/www.welaunch.io\/plugins\/wordpress-store-locator\/demo\/\" style=\"1\" show_filter=\"yes\"]<\/pre>\n<h2>Nearest store shortcode<\/h2>\n<p>You can show off the nearest shop from user location with the shortcode below.<\/p>\n<pre>[wordpress_store_locator_nearest_store text_before=\"Nearest Store: \" show_name=\"false\" show_opening=\"true\" text_separator=\" | \" denied_text=\"Please enable Geolocation\"]<\/pre>\n<h2>Stores Listing shortcode<\/h2>\n<p>Available since version 1.13.0 you can list stores by a key data field like country.<\/p>\n<pre>[wordpress_store_locator_listing key=\"country\"]<\/pre>\n<p>Full arguments lists example:<\/p>\n<pre>[wordpress_store_locator_listing key=\"country\" value=\"US\" subkey=\"region\" subvalue=\"Texas\" heading_prefix=\"Stores in \" order_by=\"pm.meta_value\" subheading_prefix=\"State: \" category=\"\"]<\/pre>\n<h2>List Stores<\/h2>\n<p>With this shortcode you can list stores<\/p>\n<pre>[wordpress_store_locator_list_stores title=\"US Stores\" max_results=\"6\" tax_relation=\"AND\" store_ids=\"\" filter_ids=\"\" category_ids=\"\" show_name=\"yes\" show_address=\"yes\" show_distance=\"yes\" show_email=\"yes\" show_telephone=\"yes\" show_mobile=\"yes\" show_website=\"yes\" show_opening=\"yes\" columns=\"2\" orderby=\"post_title\" order=\"ASC\"]Explore our stores in USA[\/wordpress_store_locator_list_stores]\r\n<\/pre>\n<h2>Single Store Page Content Shortcodes<\/h2>\n<pre>\r\n[wordpress_store_locator_single_store_title]\r\n[wordpress_store_locator_single_store_categories]\r\n[wordpress_store_locator_single_store_filter]\r\n[wordpress_store_locator_single_store_content]\r\n[wordpress_store_locator_single_store_address]\r\n[wordpress_store_locator_single_store_contact]\r\n[wordpress_store_locator_single_store_additional_information]\r\n[wordpress_store_locator_single_store_opening_hours]\r\n[wordpress_store_locator_single_store_opening_hours2]\r\n[wordpress_store_locator_single_store_contact_store]\r\n[wordpress_store_locator_single_store_review]\r\n[wordpress_store_locator_single_store_map]\r\n<\/pre>\n<h2>Google API Key<\/h2>\n<p>For our plugin you will need a fully working Google API Key. A tutorial on how to get it, can be found here:\u00a0https:\/\/connections-pro.com\/documentation\/create-google-maps-api-keys\/<br \/>\nYou need to make sure, that inside the Google Console the following options are activated:<\/p>\n<p>Allow your domain to access the key<br \/>\nEnable: Google Places API Web Service<br \/>\nEnable: Google Maps JavaScript<br \/>\nEnable: Google Maps Geocoding<\/p>\n","protected":false},"author":1,"featured_media":0,"menu_order":5,"comment_status":"open","ping_status":"closed","template":"","product_cat":[],"class_list":["post-3971","faq","type-faq","status-publish","hentry","faq_topics-store-locator-getting-started","faq_topics-store-locator","faq_topics-store-locator-shortcodes"],"_links":{"self":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/3971","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/comments?post=3971"}],"version-history":[{"count":10,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/3971\/revisions"}],"predecessor-version":[{"id":19940,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/3971\/revisions\/19940"}],"wp:attachment":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/media?parent=3971"}],"wp:term":[{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/product_cat?post=3971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}