{"id":214,"date":"2020-05-08T23:32:14","date_gmt":"2020-05-08T23:32:14","guid":{"rendered":"https:\/\/directorist.com\/docs\/?post_type=wpwax_directorist&#038;p=214"},"modified":"2021-07-26T00:02:05","modified_gmt":"2021-07-25T18:02:05","slug":"all-categories-page","status":"publish","type":"wpwax_directorist","link":"https:\/\/directorist.com\/documentation\/directorist\/shortcodes\/all-categories-page\/","title":{"rendered":"All Categories Page"},"content":{"rendered":"<div id=\"eckb-article-content-header\"><\/div>\n<div id=\"eckb-article-content-body\">\n<div id=\"kb-article-content\">\n<p>You can display all categories of directorist listings on any page or post using the following shortcode.<\/p>\n<p><strong>Directorist all categories shortcode<\/strong>:<code>[directorist_all_categories]<\/code><\/p>\n<p>The <code>[directorist_all_categories]<\/code> shortcode has many parameters to customize the display of all categories. Let\u2019s have a look at the available parameters and their available values with some description.<\/p>\n<h4>Parameters:<\/h4>\n<ul>\n<li><strong>view<\/strong>: You can display all categories in a list layout or grid layout. Available Options: list | grid view. The default value is the grid. Example:\n<pre>[directorist_all_categories view=\"grid\"]<\/pre>\n<\/li>\n<li><b>order by<\/b>: You can order all categories using this attribute. Available Options : id | count | name | slug. The default is id. Example:\n<pre>[directorist_all_categories orderby =\"id\"]<\/pre>\n<\/li>\n<li><strong>order<\/strong>: You can sort all categories in ascending or descending order using this attribute. Available Options: asc | desc. The default is asc. Example:\n<pre>[directorist_all_categories order=\"asc\"]<\/pre>\n<\/li>\n<li><strong>logged_in_user_only<\/strong>: You can make all categories page only visible for the logged-in user using this parameter. Options available: yes | no. Example:\n<pre>[directorist_all_categories logged_in_user_only=\"no\"]<\/pre>\n<\/li>\n<li><strong>redirect_page_url<\/strong>: Forward\/redirect all categories page using this parameter. Example:\n<pre>[directorist_all_categories redirect_page_url=\"www.aazztech.com\"]<\/pre>\n<\/li>\n<li><strong>columns<\/strong>: You can set the number of columns of the grid view layout using this attribute. Example\n<pre>[directorist_all_categories columns=\"3\"]<\/pre>\n<\/li>\n<li><strong><span class=\"s1\">cat_per_page<\/span><\/strong>: You can set the number of categories to show per page using this parameter. The default is 100. Example:\n<pre>[directorist_all_categories cat_per_page=\"6\"]<\/pre>\n<\/li>\n<li><strong><span class=\"s1\">slug<\/span><\/strong>: You can display specific categories using this parameter. Use category slugs separated by a comma. Example:\n<pre>[directorist_all_categories slug=\"food\"]<\/pre>\n<\/li>\n<\/ul>\n<h3 id=\"sample-screenshot\">Sample Screenshot<\/h3>\n<p>The shortcode output on your site may be a little different because new features are being added and modified with every update.<\/p>\n<figure id=\"attachment_2570\" class=\"wp-caption aligncenter\" aria-describedby=\"caption-attachment-2570\"><a href=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/05\/all-categories.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2570 lazyloaded\" src=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/05\/all-categories.jpg\" alt=\"All categories\" width=\"1920\" height=\"1100\" data-lazy-src=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/05\/all-categories.jpg\" data-was-processed=\"true\" \/><\/a><\/figure>\n<p>That&#8217;s all about All Categories Page shortcodes.<\/p>\n<\/div>\n<\/div>\n","protected":false},"author":2298,"parent":0,"menu_order":0,"template":"","class_list":["post-214","wpwax_directorist","type-wpwax_directorist","status-publish","hentry","wpwax_directorist_category-shortcodes"],"acf":[],"_links":{"self":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/wpwax_directorist\/214","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=214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}