Directorist Getting Started Directorist Overview with Setup Wizard Installation Setting Up the Required Pages Managing Categories Managing Location Terms and Conditions Setup CSV Import/Export Listings Management Adding a listing from the frontend & backend Guest listing submission Listings Sidebar Category Archive Location Archive General Listing Settings Multiple Directories All Listings Management Monetization Monetization Overview General Configurations Test your configuration Managing Orders Currency Settings Gateway Settings Search and Filter Settings Search Listing Page Setup Advanced Filter in Search Result Page Advanced Search and Filter Advanced Filter in Search Listings Form Search Result Page Setup Advanced Filter in All Listings Page Advanced Filter Widget Customization Registration and Login Customization Single Listing Page Customization All Listings Page Customization Badges Styling Adding Widgets Email Template Customize Color settings Custom Fields On Add Listing Page Shortcodes Add Listing Page All Listings Page Single Category Page Tags Page All Locations Page Search Results Login and Registration Payment & Checkout Page All Categories Page Single Location Page Search Listings User Dashboard Author Profile All Authors Advanced Settings Search Engine Optimization (SEO) Configuring Maps Review Management Translating Directorist Map View Help and Support Sending Announcements Developers Guide Action Hooks Filter Hooks Template Override Articles How to perform a plugin conflict test How to Fix Export Issues in Directorist Default Import/Export Tool Directory Builder Form and Layout Builder Single Listings Layout Multiple Directories All Listing Card Layout Search Form Layout Custom Single Listing Page Single Category Page Single Category You can display all listings of a single category using the following shortcode. Remember, if you visit the page after adding this [directorist_category] shortcode directly, you will see something like this ‘No Results Found.’ message. It is because the Directorist plugin will use the page with this shortcode to display all listings of a specific category dynamically when a user clicks on a single category anywhere on your website. In other words, this page is not for direct access so it is better not to include the page with this shortcode in the nav menu. Single Category Shortcode: [directorist_category] The shortcode [directorist_category] has a number of parameters to customize the output. Let’s have a look at the available attributes/parameters and their available values with some description. Attributes/Parameters: view: You can display all listings of a category in a list, grid, or map layout. Available Options: list, grid, and map view. The default value is the grid. Example: [directorist_category view="grid"] order by: You can order all listings of a category using this parameter. Options available: title, date & price. The default is the date. Example: [directorist_category orderby="date"] order: You can sort all listings of a category in ascending or descending order. Options available: asc | desc. The default is asc. Example: [directorist_category order="asc"] logged_in_user_only: You can make a single category only visible for the logged-in users using this parameter. Options available: yes | no. Example: [directorist_category logged_in_user_only="no"] redirect_page_url: Forward/redirect a single category page using this parameter. Example: [directorist_category redirect_page_url="www.aazztech.com"] listings_per_page: You can set the number of listing to show per page using this parameter. The default is 6. Example: [directorist_category listings_per_page="6"] header: You can show/hide the header area using these attributes. Options available: yes | no. Example: [directorist_category header="yes"] header_title: You can customize the header title using this parameter. For example [directorist_category header_title="Total Listing Found: "] columns: You can set the number of columns of the grid view layout using this attribute. Example [directorist_category columns="3"] show_pagination: You can show/hide pagination. Available Options: yes|no. Example [directorist_category show_pagination="yes"] map_height: You can customize the height of the map view layout using this attribute. Example [directorist_category map_height="350"] Bonus tips: Suppose your single category page URL is like this (https://yourwebsite.com/single-category-page-url) and you have two categories BMW and Nissan. Then you can display/view all listings under the BMW category by visiting https://yourwebsite.com/single-category-page-url/bmw and view all listings/cars by Nissan by visiting https://yourwebsite.com/single-category-page-url/nissan. Now you may have noticed how this single category page works dynamically. So basically it works like this. https://yourwebsite.com/single-category-page-url/{category_name} Last Updated: July 25th, 2021 Related Article All Authors Author Profile User Dashboard