1. Home
  2. Docs
  3. Shortcodes
  4. Shortcodes
  5. All Listings

All Listings

You can display all listings on any page using the following shortcode.

[directorist_all_listing]

The [directorist_all_listing] shortcode has many parameters to customize the display of all listings. Let’s 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 ( Directorist Listings > Directorist Settings > Listing Settings > General Settings page ).

Parameters:

  1. view: You can display all listings in a list layout or grid layout. Available Options: list,grid & map view. The default value is grid. Example: [directorist_all_listing view=”grid”]
  2. orderby : You can order all listings using this parameter. Options available : title, date,rand & price. Default is date. Example: [directorist_all_listing orderby=”date”].
  3. order: You can sort all listings in ascending or descending order. Options available: asc | desc. Default is desc. Example: [directorist_all_listing order=”asc”].
  4. listings_per_page: You can set the number of listing to show per page using this parameter. Default is 6. Example: [directorist_all_listing listings_per_page=”6″].
  5. category: Display all listings of one or more categories. Use category slugs separated by a comma. Example: [directorist_all_listing category=”food,travel,medical”])
  6. tag: Display all listings of one or more tags. Use tag slugs separated by a comma. Example [directorist_all_listing tag=”car,book,medicine”].
  7. location: Display all listings of one or more locations by location slug. Use location slugs separated by a comma. Example: [directorist_all_listing location=”new-york,michigan”].
  8. ids: You can display listings by listing ids. Example: [directorist_all_listing ids=”1,2,5″])
  9. featured_only: Display only featured listing. Options available: yes | no. Example: [directorist_all_listing featured_only=”yes”] )
  10. logged_in_user_only: You can make all listings page only visible for logged in user using this parameter. Options available: yes | no. Example: [directorist_all_listing logged_in_user_only=”no”].
  11. redirect_page_url: Forward/redirect all listings page using this parameter. Example: [directorist_all_listing redirect_page_url=”www.aazztech.com”].
  12. popular_only: Display only popular listing. Options available: yes | no. Example: [directorist_all_listing popular_only=”yes”].
  13. header: You can show/hide header area using this attributes. Options available: yes | no. Example: [directorist_all_listing header=”yes”]
  14. header_title: You can customize header title using this parameter. For example [directorist_all_listing header_title=”All Items”]
  15. header_sub_title: You can customize the header subtitle. Example  [directorist_all_listing header_sub_title =”Total Listing Found: “]
  16. columns: You can set the number of columns of the grid view layout using this attribute. Example [directorist_all_listing columns=”3″]
  17. display_preview_image: You can show/hide listing preview image using this parameter. Available options: yes|no.  Example [directorist_all_listing display_preview_image=”yes”]
  18. advanced_filter: You can show/hide advanced filter using this parameter. Available options: yes|no.  Example [directorist_all_listing advanced_filter=”yes”]
  19. show_pagination: You can show/hide pagination. Available options: yes|no.  Example [directorist_all_listing show_pagination=”yes”]
  20. map_height: You can customize the height of the map view layout using this attribute. Example [directorist_all_listing map_height=”350″]

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 listing

all listing – sample image –  click on the image to view full size