{"id":203,"date":"2020-05-08T23:24:36","date_gmt":"2020-05-08T23:24:36","guid":{"rendered":"https:\/\/directorist.com\/docs\/?post_type=wpwax_directorist&#038;p=203"},"modified":"2021-07-25T23:51:24","modified_gmt":"2021-07-25T17:51:24","slug":"all-listing-page","status":"publish","type":"wpwax_directorist","link":"https:\/\/directorist.com\/documentation\/directorist\/shortcodes\/all-listing-page\/","title":{"rendered":"All Listings 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 listings on any page using the following shortcode.<\/p>\n<p><code>[directorist_all_listing]<\/code><\/p>\n<p>The <code>[directorist_all_listing]<\/code> shortcode has many parameters to customize the display of all listings. Let\u2019s have a look at the available parameters and their available values with some description. All of these parameters are OPTIONAL. If you do not use any parameters in the shortcode then the Directorist will use options from the settings page (<strong> Directory Listings \u2192 Directory Settings \u2192 Listing Settings \u2192 General Settings page<\/strong>&nbsp;).<\/p>\n<h4>Parameters:<\/h4>\n<ol>\n<li><strong>Directory Type<\/strong>: If you are using multi directory feature then you can display all listings based on specific directory types. Example:\n<pre>[directorist_all_listing directory_type=\"place\"]<\/pre>\n<p>Replace the&nbsp;<strong><em>directory_type<\/em><\/strong> with the slug name of the directory.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/ITXBhsT.jpeg\"><\/p><\/li>\n<li><strong>view<\/strong>: You can display all listings in a list layout or grid layout. Available Options: list,grid &amp; map view. The default value is the grid. Example:\n<pre>[directorist_all_listing view=\"grid\"]<\/pre>\n<\/li>\n<li><b>order by<\/b>: You can order all listings using this parameter. Options available : title, date,rand &amp; price. The default is the date. Example:\n<pre>[directorist_all_listing orderby=\"date\"]<\/pre>\n<\/li>\n<li><strong>order<\/strong>: You can sort all listings in ascending or descending order. Options available: asc | desc. The default is desc. Example:\n<pre>[directorist_all_listing order=\"asc\"]<\/pre>\n<\/li>\n<li><strong>listings_per_page<\/strong>: You can set the number of listing to show per page using this parameter. The default is 6. Example:\n<pre>[directorist_all_listing listings_per_page=\"6\"]<\/pre>\n<\/li>\n<li><strong>category<\/strong>: Display all listings of one or more categories.&nbsp;Use category slugs separated by a comma. Example:\n<pre>[directorist_all_listing category=\"food,travel,medical\"]<\/pre>\n<\/li>\n<li><strong>tag<\/strong>: Display all listings of one or more tags. Use tag slugs separated by a comma. Example\n<pre>[directorist_all_listing tag=\"car,book,medicine\"]<\/pre>\n<\/li>\n<li><strong>location<\/strong>: Display all listings of one or more locations by location slug. Use location slugs separated by a comma. Example:\n<pre>[directorist_all_listing location=\"new-york, Michigan\"]<\/pre>\n<\/li>\n<li><strong>ids<\/strong>: You can display listings by listing ids. Example:\n<pre>[directorist_all_listing ids=\"1,2,5\"]<\/pre>\n<\/li>\n<li><strong>featured_only<\/strong>: Display only featured listing. Options available: yes | no. Example:\n<pre>[directorist_all_listing featured_only=\"yes\"]<\/pre>\n<\/li>\n<li><strong>logged_in_user_only:<\/strong> You can make all listings page only visible for logged-in users using this parameter. Options available: yes | no. Example:\n<pre>[directorist_all_listing logged_in_user_only=\"no\"]<\/pre>\n<\/li>\n<li><strong>redirect_page_url:<\/strong> Forward\/redirect all listings page using this parameter. Example:\n<pre>[directorist_all_listing redirect_page_url=\"www.aazztech.com\"]<\/pre>\n<\/li>\n<li><strong>popular_only:<\/strong> Display only popular listing. Options available: yes | no. Example:\n<pre>[directorist_all_listing popular_only=\"yes\"]<\/pre>\n<\/li>\n<li><strong>header:<\/strong> You can show\/hide the header area using these attributes. Options available: yes | no. Example:\n<pre>[directorist_all_listing header=\"yes\"]<\/pre>\n<\/li>\n<li><strong>header_title:<\/strong> You can customize the header title using this parameter. For example\n<pre>[directorist_all_listing header_title=\"All Items\"]<\/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_listing columns=\"3\"]<\/pre>\n<\/li>\n<li><strong>display_preview_image:<\/strong> You can show\/hide listing preview images using this parameter. Available Options: yes|no.&nbsp; Example\n<pre>[directorist_all_listing&nbsp;display_preview_image=\"yes\"]<\/pre>\n<\/li>\n<li><strong>advanced_filter:<\/strong> You can show\/hide advanced filter using this parameter. Available Options: yes|no.&nbsp; Example\n<pre>[directorist_all_listing&nbsp;advanced_filter=\"yes\"]<\/pre>\n<\/li>\n<li><strong>show_pagination:<\/strong> You can show\/hide pagination. Available Options: yes|no.&nbsp; Example\n<pre>[directorist_all_listing&nbsp;show_pagination=\"yes\"]<\/pre>\n<\/li>\n<li><strong>map_height:<\/strong> You can customize the height of the map view layout using this attribute. Example\n<pre>[directorist_all_listing&nbsp;map_height=\"350\"]<\/pre>\n<\/li>\n<\/ol>\n<h2>Sample Screenshot<\/h2>\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_2558\" class=\"wp-caption aligncenter\" aria-describedby=\"caption-attachment-2558\"><a href=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/05\/all-listing.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2558 lazyloaded\" src=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/05\/all-listing.jpg\" alt=\"all listing\" width=\"1920\" height=\"2200\" data-lazy-src=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/05\/all-listing.jpg\" data-was-processed=\"true\"><\/a><\/figure>\n<\/div>\n<\/div>\n\n\n<p>That&#8217;s all about Add Listing Page shortcodes.<\/p>\n","protected":false},"author":2298,"parent":0,"menu_order":0,"template":"","class_list":["post-203","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\/203","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=203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}