1. Home
  2. Docs
  3. Shortcodes
  4. Shortcodes
  5. Locations


You can display all locations of directorist listings on any page or post using the following shortcode.

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.


  • view: You can display all locations in a list layout or grid layout. Available Options: list | grid view. The default value is grid. Example: [directorist_all_locations view=”grid”].
  • orderby: 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. Default is asc. Example: [directorist_all_locations order=”asc”].
  • logged_in_user_only: You can make all locations page only visible for logged in user 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. Default is 100. Example: [directorist_all_locations loc_per_page=”6″].
  • slug: You can be displayed any locations by this attribute. Example: [directorist_all_categories 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.

All locations

All locations