{"id":380,"date":"2017-08-31T14:36:43","date_gmt":"2017-08-31T14:36:43","guid":{"rendered":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/?post_type=faq&#038;p=380"},"modified":"2020-01-30T13:36:45","modified_gmt":"2020-01-30T13:36:45","slug":"usage","status":"publish","type":"faq","link":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/faq\/usage\/","title":{"rendered":"Usage: Embed Store Locator Shortcode"},"content":{"rendered":"[vc_row el_id=&#8221;usage&#8221; personalization_rules=&#8221;%5B%7B%22country%22%3A%22AF%22%2C%22recurring_day%22%3A%220%22%2C%22start_date%22%3A%222017-08-21%22%2C%22start_time%22%3A%2200%3A00%22%2C%22end_date%22%3A%222017-08-21%22%2C%22end_time%22%3A%2223%3A55%22%2C%22device_type%22%3A%22computer%22%2C%22user_name%22%3A%224%22%2C%22user_cap%22%3A%22switch_themes%22%2C%22user_role%22%3A%22administrator%22%2C%22visits_minimum%22%3A%22100%22%2C%22visits_maximum%22%3A%22200%22%7D%5D&#8221;][vc_column][vc_column_text]\n<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>New from Version 1.4.1: Shortcode attributes to create multiple maps with different categories. See here <a href=\"https:\/\/demos.welaunch.io\/wordpress-store-locator\/docs\/faq\/where-to-find-the-category-id\/\">how to find the store category id<\/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<\/ul>\n<pre>[wordpress_store_locator 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:\/\/demos.welaunch.io\/wordpress-store-locator\/demo\/\" style=\"1\" show_filter=\"yes\"]<\/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[\/vc_column_text][vc_separator css=&#8221;.vc_custom_1503299847900{margin-top: 30px !important;margin-bottom: 30px !important;}&#8221;][\/vc_column][\/vc_row]\n","protected":false},"author":1,"featured_media":0,"menu_order":5,"comment_status":"open","ping_status":"closed","template":"","product_cat":[],"class_list":["post-380","faq","type-faq","status-publish","hentry","faq_topics-getting-started","faq_topics-shortcodes"],"_links":{"self":[{"href":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-json\/wp\/v2\/faq\/380","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-json\/wp\/v2\/comments?post=380"}],"version-history":[{"count":5,"href":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-json\/wp\/v2\/faq\/380\/revisions"}],"predecessor-version":[{"id":2147,"href":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-json\/wp\/v2\/faq\/380\/revisions\/2147"}],"wp:attachment":[{"href":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-json\/wp\/v2\/media?parent=380"}],"wp:term":[{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-json\/wp\/v2\/product_cat?post=380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}