{"id":2565,"date":"2015-02-17T22:01:25","date_gmt":"2015-02-17T22:01:25","guid":{"rendered":"https:\/\/docs.wpgeodirectory.com\/?p=2565"},"modified":"2017-10-28T08:38:56","modified_gmt":"2017-10-28T08:38:56","slug":"location-manager-shortcodes","status":"publish","type":"post","link":"https:\/\/wpgeodirectory.com\/docs\/location-manager-shortcodes\/","title":{"rendered":"Location Manager Shortcodes"},"content":{"rendered":"<p><a class=\"cnt1\" href=\"#tab\">Location Tab Switcher<\/a> <a class=\"cnt1\" href=\"#switch\">Location Switcher<\/a> <a class=\"cnt1\" href=\"#current\">Current Location Name<\/a> <a class=\"cnt1\" href=\"#desc\">Location Description<\/a> <a class=\"cnt1\" href=\"#loc\">Location Neighbourhoods<\/a> <a class=\"cnt1\" href=\"#pop\">Popular Locations<\/a> <a class=\"cnt1\" href=\"#popular\">Popular in Neighbourhood<\/a><\/p>\n<h3><a name=\"tab\"><\/a>Location Tab Switcher<\/h3>\n<h4>Shortcode:\u00a0<span style=\"color: #ff0000;\">[gd_location_tab_switcher]<\/span><\/h4>\n<p>This is like the location switcher usually added to the menu.<\/p>\n<h5>Parameters:<\/h5>\n<ul>\n<li>none<\/li>\n<\/ul>\n<h5>Example:<\/h5>\n<p><img loading=\"lazy\" class=\"greenborder\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2015\/02\/loc19.png\" alt=\"\" width=\"421\" height=\"220\" \/><\/p>\n<h3><a name=\"switch\"><\/a>Location Switcher<\/h3>\n<p><strong>Shortcode:<\/strong> <code>[gd_location_switcher] <\/code><\/p>\n<p>This is best used on a page or a wide content area, this shows searchable lists of locations.<\/p>\n<p><i class=\"fa fa-laptop fa-2x\" style=\"color: blue;\"><\/i>\u00a0<a href=\"https:\/\/wpgeo.directory\/docs\/all-cities\/\">All Locations Demo<\/a><\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<ul>\n<li>none<\/li>\n<\/ul>\n<h3><a name=\"current\"><\/a>Current Location Name<\/h3>\n<h4>Shortcode:\u00a0<span style=\"color: #ff0000;\">[gd_current_location_name]<\/span><\/h4>\n<ol>\n<li>Returns the current location name<\/li>\n<li>Only works on GD pages that have the location name in the URL, so <em><strong>GD &gt; Permalinks<\/strong><\/em> need to be set to include<br \/>\n<img loading=\"lazy\" class=\"greenborder\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2015\/02\/loc20.png\" alt=\"\" width=\"650\" height=\"69\" \/><\/li>\n<\/ol>\n<h5>Parameters:<\/h5>\n<ul>\n<li>none<\/li>\n<\/ul>\n<h3><a name=\"desc\"><\/a>Location Description<\/h3>\n<p>Shortcode:\u00a0<code>[gd_location_description]<\/code><\/p>\n<p>return the current location description<\/p>\n<p>Parameters:<\/p>\n<ul>\n<li>none<\/li>\n<\/ul>\n<h3><a name=\"loc\"><\/a>Location Neighbourhoods<\/h3>\n<p>Shortcode:\u00a0[gd_location_neighbourhood] or\u00a0[gd_location_neighborhood]<\/p>\n<p>returns list of current neighbourhoods<\/p>\n<p>Parameters:<\/p>\n<ul>\n<li>none<\/li>\n<\/ul>\n<h3><a name=\"pop\"><\/a>Popular Locations<\/h3>\n<p>Shortcode:\u00a0<code>[gd_popular_location]<\/code><\/p>\n<p>return a list of popular locations<\/p>\n<p>Parameters:<\/p>\n<ul>\n<li>none<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3><a name=\"popular\"><\/a>Popular in Neighbourhood<\/h3>\n<p>Shortcode:\u00a0<code>[gd_popular_in_neighborhood] or [gd_popular_in_neighborhood]<\/code><\/p>\n<p>Parameters:<\/p>\n<ul>\n<li>post_type &#8211; The slug for the post_type (default = gd_place)<\/li>\n<li>category &#8211; ID number of the category to show (default = 0 for all)<\/li>\n<li>list_sort &#8211; One of az, latest, featured, high_review, high_rating, random (default = latest)<\/li>\n<li>post_number &#8211; Number of posts to show (default = 5)<\/li>\n<li>layout &#8211; Number of columns to show (default = 2)<\/li>\n<li>character_count &#8211; Number of characters to show from the Excerpt (Min\/default = 20)<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Location Tab Switcher Location Switcher Current Location Name Location Description Location Neighbourhoods Popular Locations Popular in Neighbourhood Location Tab Switcher Shortcode:\u00a0[gd_location_tab_switcher] This is like the location switcher usually added to the menu. Parameters: none Example: Location Switcher Shortcode: [gd_location_switcher] This is best used on a page or a wide content area, this shows searchable lists &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/wpgeodirectory.com\/docs\/location-manager-shortcodes\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Location Manager Shortcodes&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1670,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[34],"tags":[],"amp_validity":null,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/posts\/2565"}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/users\/1670"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/comments?post=2565"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/posts\/2565\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/media?parent=2565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/categories?post=2565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/tags?post=2565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}