This extension adds a new layout view for listings, and search results pages where you can show listings and map side by side with advanced search form/filters. So users will see listings and filter options on the left side of the page and map with listing marker on right side of the page.
Shortcode: [directorist_all_listing view="listings_with_map" map_height="800"]
This shortcode has an additional parameter to customize the output. Let’s have a look at the available attribute/parameter and the available value with some description.
listings_with_map_columns: This parameter is solely created for Listings with Map. It has two layout (2 column, 3 column) for displaying listings. You can specify the column number of the layout with this parameter. Default: 2. Options available : 2, 3. Example: [directorist_all_listing view="listings_with_map" map_height="800" listings_with_map_columns="3"]
Other than this attribute/parameter you can also use most of the attributes/parameters of the All listing page. All those available parameters/attributes are listed below→
Parameters:
- directory_type: If you are using multi directory feature then you can display all listings based on specific directory types. Example:
[directorist_all_listing view="listings_with_map" directory_type="place"]
Replace the directory_type with the slug name of the directory. - order by: You can order all listings using this parameter. Options available : title, date,rand & price. The default is the date. Example:
[directorist_all_listing view="listings_with_map" orderby="date"] - order: You can sort all listings in ascending or descending order. Options available: asc | desc. The default is desc. Example:
[directorist_all_listing view="listings_with_map" order="asc"] - listings_per_page: You can set the number of listing to show per page using this parameter. The default is 6. Example:
[directorist_all_listing view="listings_with_map" listings_per_page="6"] - category: Display all listings of one or more categories. Use category slugs separated by a comma. Example:
[directorist_all_listing view="listings_with_map" category="education,place,restaurant"]
Replace the values of the category with the slug name of the category.
- tag: Display all listings of one or more tags. Use tag slugs separated by a comma. Example
[directorist_all_listing view="listings_with_map" tag="car,book,medicine"]
Replace the values of tag with the slug name of the tag.
- location: Display all listings of one or more locations by location slug. Use location slugs separated by a comma. Example:
[directorist_all_listing view="listings_with_map" location="new-york, Michigan"]
Replace the values of location with the slug name of the location.
- ids: You can display listings by listing ids. Example:
[directorist_all_listing view="listings_with_map" ids="1,2,5"]
Replace the id with the id of your listings.
- featured_only: Display only featured listing. Options available: yes | no. Example:
[directorist_all_listing view="listings_with_map" featured_only="yes"] - logged_in_user_only: You can make all listings page only visible for logged-in users using this parameter. Options available: yes | no. Example:
[directorist_all_listing view="listings_with_map" logged_in_user_only="no"] - redirect_page_url: Forward/redirect all listings page using this parameter. Example:
[directorist_all_listing redirect_page_url="www.aazztech.com"] - popular_only: Display only popular listing. Options available: yes | no. Example:
[directorist_all_listing view="listings_with_map" popular_only="yes"] - header: You can show/hide the header area using these attributes. Options available: yes | no. Example:
[directorist_all_listing view="listings_with_map" header="yes"]
- display_preview_image: You can show/hide listing preview images using this parameter. Available Options: yes|no. Example
[directorist_all_listing view="listings_with_map" display_preview_image="yes"]
show_pagination: You can show/hide pagination. Available Options: yes|no. Example
[directorist_all_listing view="listings_with_map" show_pagination="yes"]
Last Updated: April 7th, 2022