{"id":814,"date":"2019-06-07T06:26:56","date_gmt":"2019-06-07T06:26:56","guid":{"rendered":"https:\/\/wpgeodirectory.com\/docs-v2\/?post_type=docs&#038;p=814"},"modified":"2019-10-20T11:37:40","modified_gmt":"2019-10-20T11:37:40","slug":"gd-categories","status":"publish","type":"docs","link":"https:\/\/wpgeodirectory.com\/docs-v2\/design\/gd-categories\/","title":{"rendered":"GD > Categories"},"content":{"rendered":"<p>GD > Categories is a dynamic element that displays categories for your Custom Post Types. Each category displayed is linked to the relevant archive page for the category.<\/p>\n<p>Shows a list of GeoDirectory categories. Shows categories from a post type when used on a Detail page.<br \/>\nUse on any page or post, or use the advanced options and place in a template page.<\/p>\n<h3>Options<\/h4>\n<p>GD Categories has a number of options, so read on to find out more.<\/p>\n<h4>Basic Options<\/h4>\n<p><strong>Title<\/strong><\/p>\n<pre><code>title=\"My Title\"<\/code><\/pre>\n<h4>Advanced Options<\/h4>\n<p>Click on the blue button to open up the advanced options.<\/p>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/06\/advanced-settings-single.jpg\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/06\/advanced-settings-single.jpg\" alt=\"\" width=\"65\" height=\"40\" class=\"alignnone size-full wp-image-826\" \/><\/a><\/p>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/06\/gd-categories-1.jpg\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/06\/gd-categories-1.jpg\" alt=\"\" width=\"776\" height=\"815\" class=\"alignnone size-full wp-image-827\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/06\/gd-categories-1.jpg 776w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/06\/gd-categories-1-286x300.jpg 286w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/06\/gd-categories-1-768x807.jpg 768w\" sizes=\"(max-width: 776px) 100vw, 776px\" \/><\/a><\/p>\n<h4>Examples<\/h4>\n<p>The icons shown are based on the following configuration:<\/p>\n<ol>\n<li>Restautant       &#8211; Category Icon=Silverware, Category Color = Red<\/li>\n<li>Italian          &#8211; Category Icon=None, Category Color = None<\/li>\n<li>Southern Italian &#8211; Category Icon=None, Category Color = White<\/li>\n<\/ol>\n<p>These settings are available in the CPT &#8211; Categories (edit) . <a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/geodirectory\/places\/categories\/\">See Categories documentation here<\/a>.<\/p>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/10\/gd-cat-options.png\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/10\/gd-cat-options.png\" alt=\"\" width=\"300\" class=\"alignnone size-full wp-image-364\" \/><\/a><\/p>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/05\/gd_categories_output.jpg\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/05\/gd_categories_output-300x96.jpg\" alt=\"\" width=\"300\" height=\"96\" class=\"alignnone size-medium wp-image-136\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/05\/gd_categories_output-300x96.jpg 300w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/05\/gd_categories_output-768x245.jpg 768w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/05\/gd_categories_output.jpg 935w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h3><a href=\"#customizing\" id=\"customizing\">Customizing<\/a><\/h3>\n<p>Read more about <a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/faq\/customizing\/\">customizing<\/a> with PHP and CSS snippets <a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/faq\/customizing\/\">here<\/a>.<\/p>\n<pre><code class='css'>\r\n\/*GDV2 &#8211; GD Categories &#8211; Remove Background color for the list-item *\/\r\n.geodir-categories-container ul li {\r\n    background: none!important;\r\n}\r\n\/*GDV2 &#8211; GD Categories &#8211; Remove Background color for the left side *\/\r\n.gd-cptcat-cat-left {\r\n    background: none!important;\r\n}\r\n\/*GDV2 &#8211; GD Categories &#8211; Remove margins when using the default category image*\/\r\n.geodir-categories-container ul li a .gd-cptcat-icon img {\r\n    height: 100%!important;\r\n    margin-top: 0%!important;\r\n}\r\n\/*GDV2 &#8211; GD Categories &#8211; Create 4 column layout*\/\r\n.geodir-categories-container ul {\r\n    width: 23%;\r\n}\r\n<\/code><\/pre>\n","protected":false},"featured_media":0,"parent":806,"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\/814"}],"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=814"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/814\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/806"}],"next":[{"title":"GD > Listings","link":"https:\/\/wpgeodirectory.com\/docs-v2\/design\/gd-listings\/","href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/651"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/media?parent=814"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/doc_tag?post=814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}