{"id":1492,"date":"2019-04-10T06:30:24","date_gmt":"2019-04-10T06:30:24","guid":{"rendered":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/?post_type=faq&#038;p=1492"},"modified":"2020-06-12T06:59:09","modified_gmt":"2020-06-12T06:59:09","slug":"use-the-nearest-store-shortcode","status":"publish","type":"faq","link":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/faq\/use-the-nearest-store-shortcode\/","title":{"rendered":"Use the Nearest Store Shortcode"},"content":{"rendered":"[vc_row][vc_column][vc_column_text]Below is the shortcode to display nearest store to the users location. It shows the store name + address and is linked to the single store page. Also it shows the opening hours for this store.<\/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<p><strong>Parameters:<\/strong><\/p>\n<ul>\n<li>text_before (Default: &#8220;Nearest Store: &#8220;)<\/li>\n<li>show_name (Default: &#8220;false&#8221;)<\/li>\n<li>show_opening (Default: &#8220;true&#8221;)<\/li>\n<li>text_separator (Default: &#8221; | &#8220;)<\/li>\n<li>denied_text=&#8221;Please enable Geolocation&#8221;<\/li>\n<\/ul>\n<p>Output: Shows nearest store &#8220;address, city | opening hours&#8221;[\/vc_column_text][\/vc_column][\/vc_row]\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","product_cat":[],"class_list":["post-1492","faq","type-faq","status-publish","hentry","faq_topics-shortcodes"],"_links":{"self":[{"href":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-json\/wp\/v2\/faq\/1492","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=1492"}],"version-history":[{"count":4,"href":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-json\/wp\/v2\/faq\/1492\/revisions"}],"predecessor-version":[{"id":2470,"href":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-json\/wp\/v2\/faq\/1492\/revisions\/2470"}],"wp:attachment":[{"href":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-json\/wp\/v2\/media?parent=1492"}],"wp:term":[{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/demos.welaunch.io\/wordpress-store-locator\/wp-json\/wp\/v2\/product_cat?post=1492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}