{"id":509,"date":"2018-12-16T10:47:12","date_gmt":"2018-12-16T10:47:12","guid":{"rendered":"https:\/\/wpgeodirectory.com\/docs-v2\/?post_type=docs&#038;p=509"},"modified":"2019-08-22T11:22:28","modified_gmt":"2019-08-22T11:22:28","slug":"permalinks","status":"publish","type":"docs","link":"https:\/\/wpgeodirectory.com\/docs-v2\/geodirectory\/settings\/permalinks\/","title":{"rendered":"Permalinks"},"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=\"#settings\">Settings<\/a><br \/>\n<a href=\"#support\">Support<\/a><br \/>\n<a href=\"#faq\">FAQ &#8211; Frequently Asked Questions<\/a><br \/>\n<\/span><\/p>\n<h3><a name=\"intro\" href=\"#intro\">Introduction<\/a><\/h3>\n<p>GeoDirectory create new settings in the WordPress Permalinks options to adjust the permalinks patterns for GeoDirectory pages.<\/p>\n<h3><a name=\"settings\" href=\"#settings\">Settings<\/a><\/h3>\n<p>Recommended settings shown below:<\/p>\n<blockquote class=\"gd-faq\"><p>\n<strong>Common Settings &#8211; Post Name<\/strong><br \/>\n<strong>GeoDirectory Permalinks &#8211; Full location with category<\/strong>\n<\/p><\/blockquote>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/12\/wp-permalinks.jpg\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/12\/wp-permalinks.jpg\" alt=\"\" width=\"150\" class=\"alignnone size-full wp-image-510\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/12\/wp-permalinks.jpg 318w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/12\/wp-permalinks-222x300.jpg 222w\" sizes=\"(max-width: 318px) 100vw, 318px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/permalinks-recommended.png\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/permalinks-recommended.png\" alt=\"\" width=\"600\" class=\"alignnone size-full wp-image-554\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/permalinks-recommended.png 1562w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/permalinks-recommended-113x300.png 113w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/permalinks-recommended-768x2042.png 768w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/permalinks-recommended-385x1024.png 385w\" sizes=\"(max-width: 1562px) 100vw, 1562px\" \/><\/a><\/p>\n<h3><a name=\"locations\" href=\"#locations\">Location Manager Options<\/a><\/h3>\n<p>If you have the Location Manager installed you have additional options for controlling the behavior of archive links on the Detail and Archive page templates. <\/p>\n<p><a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/location-manager\/\">Read more about the Location Manager Addon here<\/a><\/p>\n<h3><a name=\"archive\" href=\"#archive\">Location and Taxonomy Archive Permalinks<\/a><\/h3>\n<p>For V2 this is the URL structure for archive (taxonomy) pages based on the Archive template:<\/p>\n<p><strong>URL Pattern Variables<\/strong><\/p>\n<p>\/CPT_SLUG\/ is set in the CPT Settings, for example: Places &#8211; Settings &#8211; slug<br \/>\n\/CAT_BASE_SLUG\/ is set in WordPress &#8211; Settings &#8211; Permalinks &#8211; GeoDirectory Taxonomies &#8211; Category Base<br \/>\n\/LOCATION_SLUG\/ is set as the slug of your site&#8217;s GeoDirectory Location page<\/p>\n<p><strong>Archive Page URL Patterns<\/strong> (only available with <a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/location-manager\/\">Location Manager Addon<\/a>)<\/p>\n<p>Custom Post Type Archive URL Pattern<br \/>\n\/CPT_SLUG\/<br \/>\n\/CPT_SLUG\/%country%\/%region%\/%city%\/<br \/>\n\/CPT_SLUG\/%country%\/%region%\/<br \/>\n\/CPT_SLUG\/%country%\/<br \/>\n\/CPT_SLUG\/%country%\/%region%\/%city%\/%neighbourhood%\/ (with Location Manager neighborhoods option)<\/p>\n<p><strong>Custom Post Type Category Archive URL Pattern<\/strong><\/p>\n<p>\/CPT_SLUG\/CAT_BASE_SLUG\/%category%\/ &#8211; without any location parameter<br \/>\n\/CPT_SLUG\/CAT_BASE_SLUG\/%category%\/%country%\/%region%\/%city%\/<br \/>\n\/CPT_SLUG\/CAT_BASE_SLUG\/%category%\/%country%\/%region%\/<br \/>\n\/CPT_SLUG\/CAT_BASE_SLUG\/%category%\/%country%<br \/>\n\/CPT_SLUG\/CAT_BASE_SLUG\/%category%\/%country%\/%region%\/%city%\/%neighbourhood%\/ (with Location Manager neighborhoods option)<\/p>\n<p><strong>Location Page URL Pattern<\/strong><\/p>\n<p>\/LOCATION_SLUG\/ (&#8220;Everywhere&#8221;) &#8211; or<br \/>\n\/LOCATION_SLUG\/%country%\/%region%\/%city%\/<br \/>\n\/LOCATION_SLUG\/%country%\/%region%\/<br \/>\n\/LOCATION_SLUG\/%country%<br \/>\n\/LOCATION_SLUG\/%country%\/%region%\/%city%\/%neighbourhood%\/ (with Location Manager neighborhoods option)<\/p>\n<p><strong>Remove Country or Region from URLs displayed in GeoDirectory elements when using the default location<\/strong><\/p>\n<p>The only time this structure will change is if you are only using the default country and default region.<br \/>\nTick the options shown below in the Locations tab (Location Manager) to remove respective slugs from the Location and Archive URLs displayed on the frontend. Of note, the pages will still exist, but your links will not include the reference to the country or region.<\/p>\n<blockquote><p><strong>GeoDirectory &#8211; Settings &#8211; Locations (tab)<\/strong><\/p><\/blockquote>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/12\/default-country.jpg\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/12\/default-country.jpg\" alt=\"\" width=\"600\" class=\"alignnone size-full wp-image-632\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/12\/default-country.jpg 1826w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/12\/default-country-300x211.jpg 300w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/12\/default-country-768x539.jpg 768w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/12\/default-country-1024x719.jpg 1024w\" sizes=\"(max-width: 1826px) 100vw, 1826px\" \/><\/a><\/p>\n<p>CAT_BASE_SLUG is required and should be set carefully to make sure that there are no conflicts with the slugs for other post types, posts, locations, or categories.<\/p>\n<p>V2 Archive URLs use a different structure than V1 in order to make them more compatible with WordPress permalinks. When a site converts to V2, GD creates redirects to take users to the new URLs.<\/p>\n<p><a href=\"#404-rescue\" name=\"404-rescue\"><strong>404 Rescue<\/strong><\/a><\/p>\n<p>GDV1 style category\/archive links can be redirected with the setting at<\/p>\n<blockquote><p><strong>GeoDirectory &#8211; Settings &#8211; General &#8211; Developer &#8211; Enable 404 Rescue<\/strong><\/p><\/blockquote>\n<p>This will check 404 pages where a GD CPT is identified and try and redirect to the correct url. This should help tell search engines about term or post permalink changes.<\/p>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/12\/404-rescue.jpg\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/12\/404-rescue.jpg\" alt=\"\" width=\"998\" height=\"402\" class=\"alignnone size-full wp-image-898\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/12\/404-rescue.jpg 998w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/12\/404-rescue-300x121.jpg 300w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/12\/404-rescue-768x309.jpg 768w\" sizes=\"(max-width: 998px) 100vw, 998px\" \/><\/a><\/p>\n<h4>Archive and Archive Item Design<\/h4>\n<p>Archive pages using the above structure are produced automatically by GeoDirectory. You can adjust the layout and elements on the page by adjusting the Archive or Archive item templates. <\/p>\n<p><a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/geodirectory\/page-design\/\">Read more about Page Design<\/a><\/p>\n<h3><a name=\"support\" href=\"#support\">Get Support<\/a><\/h3>\n<p>Get support on our forum, find out more here: <a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/geodirectory\/support\/\" rel=\"noopener\" target=\"_blank\">https:\/\/wpgeodirectory.com\/docs-v2\/geodirectory\/support\/<\/a><\/p>\n<h3><a name=\"faq\" href=\"#faq\">FAQ &#8211; Frequently Asked Questions<\/a><\/h3>\n<blockquote class=\"gd-faq\"><p><a href=\"#404\" name=\"404\"><\/p>\n<h5>Re-save Permalinks<\/h5>\n<p><\/a><br \/>\nIf you are getting &#8220;404 &#8211; Page Not Found&#8221; errors, try re-saving your permalinks.<\/p>\n<p>This is a two-step process. First you have to change the GeoDirectory permalinks to a different setting,, save, then set them back to your preferred setting and save again.<\/p>\n<ul>\n<li>Open the settings at: WordPress &#8211; Settings &#8211; Permalinks<\/li>\n<li>Choose a different setting for your GeoDirectory permalinks, then save. Do not use &#8216;Plain&#8217; if that is offered as a setting.<\/li>\n<li>On reload, switch back to the setting you had before, and save again.<\/li>\n<li>Check the page to see if the issue persists.<\/li>\n<\/ul>\n<\/blockquote>\n<blockquote class=\"gd-faq\">\n<h5>Use pattern \/cpt\/city\/category\/post-name\/ for listing URLs<\/h5>\n<p>This is possible but this pattern will only be applied to the Detail listing page of your CPTs.<\/p>\n<p>Archives will still have the structure documented above.<\/p><\/blockquote>\n","protected":false},"featured_media":0,"parent":96,"menu_order":0,"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\/509"}],"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=509"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/509\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/96"}],"next":[{"title":"Emails","link":"https:\/\/wpgeodirectory.com\/docs-v2\/geodirectory\/settings\/emails\/","href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/154"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/media?parent=509"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/doc_tag?post=509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}