{"id":153,"date":"2020-05-08T10:19:08","date_gmt":"2020-05-08T10:19:08","guid":{"rendered":"https:\/\/directorist.com\/docs\/?post_type=wpwax_directorist&#038;p=153"},"modified":"2021-07-11T19:56:14","modified_gmt":"2021-07-11T13:56:14","slug":"managing-categories","status":"publish","type":"wpwax_directorist","link":"https:\/\/directorist.com\/documentation\/directorist\/getting-started\/managing-categories\/","title":{"rendered":"Managing Categories"},"content":{"rendered":"\n<p>With Directorist, you can also manage the categories for the listings your users upload on your website.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Creating Categories<\/h3>\n\n\n\n<p>At first, you need to create a listing category before assigning a listing to it. You can create a listing category in two ways:<\/p>\n\n\n\n<p><strong>1.<\/strong> From the <strong>WP Admin Dashboard \u2192<\/strong> <strong>Directory Listings <span style=\"color: #666d92\">\u2192<\/span>\u00a0Add New Listing<\/strong> page while adding a listing as an admin<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/hs2VCW8.png\" alt=\"\" \/><\/figure><\/div>\n\n\n\n<p><strong>2<\/strong>. From the <strong>Directory Listings <span style=\"color: #666d92\">\u2192<\/span> Directory Categories<\/strong>&nbsp;page.<\/p>\n\n\n\n<p>The primary difference between the two methods is that you will be able to add an icon and an image to any listing category in the <strong>Directorist Category<\/strong> page(2nd method) while you can not do the same in the Add New Listing page. This is why we recommend creating all listing categories from the Directorist Categories Page.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/H4wtFJ4.jpg\" alt=\"\" \/><\/figure><\/div>\n\n\n\n<p>Go to\u00a0<strong>Directory Listings \u2192 Directory Categories<\/strong> page and give a name to your chosen category. <\/p>\n\n\n\n<p>Adding a slug is optional as WordPress will generate this from the name field automatically. <\/p>\n\n\n\n<p>Choose a parent category if you want to organize it by a parent-child hierarchy. <\/p>\n\n\n\n<p>The description field is optional. <\/p>\n\n\n\n<p>From the Category Icon dropdown, select an icon for the category. You can also search for an icon. Directorist uses Font Awesome icons so, you can search a category icon by Font Awesome icon names. <\/p>\n\n\n\n<p>If you wish, you may add an image to the category by clicking the \u2018Add Image\u2019 button on that page. The category image will be visible only on the page with the shortcode <strong>[directorist_all_categories] and Grid view layout ( you may also display categories in a list layout. Keep reading for more info on this later in the page)<\/strong>. <\/p>\n\n\n\n<p>Once you have created the number of categories you wanted, you can assign them to any listing during adding a listing either from the front-end or the backend dashboard.<\/p>\n","protected":false},"author":2298,"parent":0,"menu_order":0,"template":"","class_list":["post-153","wpwax_directorist","type-wpwax_directorist","status-publish","hentry","wpwax_directorist_category-getting-started"],"acf":[],"_links":{"self":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/wpwax_directorist\/153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/wpwax_directorist"}],"about":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/types\/wpwax_directorist"}],"author":[{"embeddable":true,"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/users\/2298"}],"wp:attachment":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/media?parent=153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}