{"id":717,"date":"2019-04-17T13:34:26","date_gmt":"2019-04-17T13:34:26","guid":{"rendered":"https:\/\/wpgeodirectory.com\/docs-v2\/templates\/location-page\/"},"modified":"2019-05-07T22:44:15","modified_gmt":"2019-05-07T22:44:15","slug":"location","status":"publish","type":"docs","link":"https:\/\/wpgeodirectory.com\/docs-v2\/templates\/location\/","title":{"rendered":"Location Page"},"content":{"rendered":"<style>\nh5 {\n  font-size: 1.2em;\n  font-weight: bold;\n  margin-top: 5px;\n  margin-bottom: 15px;\n}\nblockquote.gd-faq h5 {\n    display: block;\n    margin-top: 5px;\n    margin-bottom: 15px;\n    margin-left: -10px;\n    padding: 0px;\n    border: 1px solic #cccccc;\n    width: 100%;\n    color: #393939;\n    text-decoration: underline;\n}\nblockquote.gd-faq h5 a {\n    color: #393939;\n}\nblockquote.gd-faq {\n  padding: 15px!important;\n  margin: 20px!important;\n  border: 1px solid #cccccc !important;\n  background-color: #ffffff!important;\n  border-left: 10px solid #FFF7F3 !important;\n  10px 10px 10px -10px #cccccc !important;\n  border-radius: 0px 4px 4px 0px;\n}\n<\/style>\n<p><span class='bookmark-index'><br \/>\n<a href=\"#intro\">Introduction<\/a><br \/>\n<a href=\"#troubleshooting\">Troubleshooting<\/a><br \/>\n<a href=\"#faq\">Frequently Asked Questions<\/a><br \/>\n<a href=\"#support\">Support<\/a><br \/>\n<\/span><\/p>\n<h3><a name=\"intro\" href=\"#intro\">Introduction<\/a><\/h3>\n<h4>What<\/h4>\n<p>The Location page is a special page that uses GD Listings to introduce visitors to a new location. It can display information about the location, featured listings, and much much more.<br \/>\nThe location page is really the &#8216;home page&#8217; for each city or region or country directory, and so the page should include elements that give the visitor an overview of the location alon with links that make it easy to explore the listings they are looking for.<\/p>\n<p>The contents of the page are GeoDirectory Elements. These elements are used to display listings, location information, and more.<br \/>\nOn this page you can find information about the location page and the design elements often used in the page.<\/p>\n<h4>Where<\/h4>\n<p>The Location page is a WordPress page that is installed with GeoDirectory.<br \/>\nYou can find the page by searching in the the Pages on your site in:<\/p>\n<p><strong>WordPress Backend &#8211; Pages &#8211; Search &#8220;gd&#8221;<\/strong> &#8211; Find the Location page and hover your mouse over it to edit the page.<\/p>\n<h4>Examples<\/h4>\n<p>Directory Starter &#8211; <a href=\"https:\/\/wpgeo.directory\/starter\/location\/united-states\/california\/san-francisco\/\" rel=\"noopener\" target=\"_blank\">https:\/\/wpgeo.directory\/starter\/location\/united-states\/california\/san-francisco\/<\/a><br \/>\nSupreme Directory &#8211; <a href=\"https:\/\/wpgeo.directory\/supreme-directory\/location\/united-states\/california\/san-francisco\/\" rel=\"noopener\" target=\"_blank\">https:\/\/wpgeo.directory\/supreme-directory\/location\/united-states\/california\/san-francisco\/<\/a><\/p>\n<p>GD Elements Visible in the Example pages Above<\/p>\n<p>GD Listings &#8211; Featured Only with Location filter, Places with Location filter, Real Estate with Location filter<br \/>\nGD Categories &#8211; Display links to Archive pages for the category and location<br \/>\nGD Map &#8211; Directory map showing post type and category filter<br \/>\nGD Search &#8211; Near field automatically set to the page location<br \/>\nGD Recently Viewed &#8211; Show listings that the visitor has recently viewed<\/p>\n<h3>GeoDirectory Settings<\/h3>\n<h4>Default Template Setting<\/h4>\n<p>Choose the page that will serve as the Location page in the Pages settings:<\/p>\n<p><strong>GeoDirectory &#8211; Settings &#8211; General &#8211; Pages &#8211; Detail template &#8211; Choose your Location page<\/strong><\/p>\n<h4>Permalinks<\/h4>\n<p>Read more about the location page URL pattern <a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/geodirectory\/settings\/permalinks\/\"> here<\/a>. <\/p>\n<h3>Personalize<\/h3>\n<h4>GeoDirectory Design Elements<\/h4>\n<p>The Location page uses GD Listings with the location filter option enabled. This allows GD Listings to show only listings that are IN the specific location.<br \/>\nGD Loop, GD Loop actions, and GD Loop paging cannot be used on the location page.<\/p>\n<h4>Default Content<\/h4>\n<p>When GeoDirectory is installed, the template is installed with default content. If you make changes to the page, and want to restore the default content, you can find it in the GeoDirectory Settings:<\/p>\n<p><strong>GeoDirectory &#8211; Settings &#8211; General &#8211; Pages &#8211; Click &#8220;Default Content&#8221;<\/strong><\/p>\n<p>The default content will be shown in a lightbox modal. You can copy and paste the default content back into the Page, overwriting anything you already have in the page.<\/p>\n<h3>More Design Options<\/h3>\n<h4>GD Location Description<\/h4>\n<p>Display unique infromation about each individual location dynamically with the GD Location Description element. Read more about <a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/location-manager\/\" rel=\"noopener\" target=\"_blank\">adding Location Description information here<\/a>.<\/p>\n<pre><code>[gd_location_description]<\/code><\/pre>\n<h4>GD Recently Viewed<\/h4>\n<p>Show listings that the visitor has recently viewed with the <a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/geodirectory\/design-elements\/#gd_recently_viewed\" rel=\"noopener\" target=\"_blank\">GD Recently Viewed element<\/a>.<\/p>\n<h4>GD Recent Reviews<\/h4>\n<p>Show recent reviews with the <a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/geodirectory\/design-elements\/#gd_recent_reviews\" rel=\"noopener\" target=\"_blank\">GD Recent Reviews element<\/a>.<\/p>\n<h3>Builders<\/h3>\n<p>You can absolutely use a basic builder to adjust the layout and design elements on the Location page. See more information <a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/integrations\/builders\/\">here on the builders doc<\/a>.<\/p>\n<h3>Pages Templates and Sidebars<\/h3>\n<p>GD Uses the sidebars that come with your theme. Read more about how to <a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/themes\/\" rel=\"noopener\" target=\"_blank\">choose a theme that has the sidebars you want here<\/a>. <\/p>\n<h3><a name=\"customize\" href=\"#customize\">Customize<\/a><\/h3>\n<blockquote class=\"gd-faq\">\n<h5><a href=\"#visibility\" name=\"visibility\">Visibility<\/a><\/h5>\n<p>Use Widget Logic or other widget visibility plugins with the following logic to make widgets or elements visible on a specific location page.<\/p>\n<pre><code class='php'>\r\nglobal $geodirectory;\r\nif(geodir_is_page('location') &amp;&amp; $geodirectory-&gt;location-&gt;city_slug == 'new-york' ){\r\n        \/\/ stuff\r\n}\r\n<\/code><\/pre>\n<\/blockquote>\n","protected":false},"featured_media":0,"parent":683,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"amp_validity":null,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/717"}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/comments?post=717"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/717\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/683"}],"next":[{"title":"Add Listing Page","link":"https:\/\/wpgeodirectory.com\/docs-v2\/templates\/add-listing\/","href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/716"}],"prev":[{"title":"Search Archive Template","link":"https:\/\/wpgeodirectory.com\/docs-v2\/templates\/search\/","href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/714"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/media?parent=717"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/doc_tag?post=717"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}