You can display the result of a search of listings on any page by using this Search Result Listing: [directorist_search_result] [directorist_search_result] has many parameters to customize the display of all listings in the search result page. Let’s have a look at the available parameters and their available values with some description.
Parameters:
- view: You can display the search results in a list, grid & map view layout.
Available Options: list | grid | map view. The default value is the grid.
Example: [directorist_search_result view=”grid”] - order by: You can order the search results using this parameter. Available Options: title, date | price. The default is the date.
Example: [directorist_search_result orderby=”date”] - order: You can sort the result in ascending or descending order using this option. Available Options: asc | desc. The default is asc.
Example: [directorist_search_result order=”asc”] - logged_in_user_only: You can make search result only visible for the logged-in users using this parameter. Options available: yes | no.
Example: [directorist_search_result logged_in_user_only=”no”] - redirect_page_url: Forward/redirect search result page using this parameter.
Example: [directorist_search_result redirect_page_url=”www.aazztech.com”] - listings_per_page: Number of listings to show in the result per page. The default is 6.
Example: [directorist_search_result listings_per_page=”6″] - featured_only: Display only featured listings in the result. Options available: yes | no.
Example: [directorist_search_result featured_only=”yes”] - popular_only: Display only popular listings in the result. Options available: yes | no.
Example: [directorist_search_result popular_only=”yes”] - header: You can hide/show the header area using header attributes. Options available: yes | no.
Example: [directorist_search_result header=”yes”] - header_title:
[directorist_search_result header_title=”Search Result”] - header_sub_title:
[directorist_search_result header_sub_title =”Total Listing Found”] - columns: select any column for grid view using columns attribute.
[directorist_search_result column=”3″] - show_pagination: You can show/hide pagination using this attribute. Available options: yes|no.
Example: [directorist_search_result show_pagination=”yes”] - map_height: You can customize the height of the map view layout using this attribute.
Example [directorist_search_result 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.