You can display all locations of directorist listings on any page or post using the following shortcodes.
Directorist all locations shortcode : [directorist_all_locations].
The [directorist_all_locations] shortcode has many parameters to customize the display of all locations. Let’s have a look at the available parameters and their available values with some description.
Attributes/Parameters:
- view: You can display all locations in a list layout or grid layout. Available Options: list | grid view. The default value is the grid.
Example: [directorist_all_locations view=”grid”] - order by: You can order all locations using this attribute. Available Options : id | count | name | slug. The default is id.
Example: [directorist_all_locations orderby =”id”] - order: You can sort all locations in ascending or descending order using this attribute. Available Options: asc | desc. The default is asc.
Example: [directorist_all_locations order=”asc”] - logged_in_user_only: You can make all locations page only visible for logged-in users using this parameter. Options available: yes | no.
Example: [directorist_all_locations logged_in_user_only=”no”] - redirect_page_url: Forward/redirect all locations page using this parameter.
Example: [directorist_all_locations redirect_page_url=”www.aazztech.com”] - columns: You can set the number of columns of the grid view layout using this attribute.
Example [directorist_all_locations columns=”3″] - loc_per_page: You can set the number of locations to show per page using this parameter. The default is 100.
Example: [directorist_all_locations loc_per_page=”6″] - slug: You can display any locations by using this attribute.
Example: [directorist_all_locations slug=”usa”]
Sample Screenshot
The shortcode output on your site may be a little different because new features are being added and modified with every update.
Video
That’s all about All Locations Page shortcodes.