Displaying Advanced Filter in the Search Form Page
You can display the advanced filter on the search page in one of the following two ways.
A) Using shortcode attributes: the shortcode for displaying Directorist search listing has a number of additional attributes. You can use some of those attributes to control the advanced filter in the search form. The description of some of the attributes related to the filters is given below. You can find the list of all attributes here.
more_filters_button: You can hide/show the advanced filter ("more filters") button by this attribute. Options available: yes | no. The default value is yes. Example usage:
price_min_max_field: You can show/hide price minimum and maximum fields by this attribute. Available Options: yes | no. The default value is "yes". Example usage:
rating_field: You can show/hide the rating_field field by this attribute. Available Options: yes | no. The default value is "yes". Example usage:
[directorist_search_listing rating_field="yes"]
tag_field: You can show/hide the tag field by this attribute. Available Options: yes | no. The default value is "yes". Example usage:
[directorist_search_listing tag_field="yes"]
open_now_field: You can show/hide open now field by this attribute. Available Options: yes | no. The default value is "no". Example usage:
[directorist_search_listing open_now_field="no"]
custom_fields: You can show/hide open custom fields by this attribute. Available Options: yes | no. The default value is "yes". Example usage:
[directorist_search_listing custom_fields="yes"]
website_field: You can show/hide the website field by this attribute. Available Options: yes | no. The default value is "no". Example usage:
[directorist_search_listing website_field="no"]
email_field: You can show/hide the email field by this attribute. Available Options: yes | no. The default value is "no". Example usage:
[directorist_search_listing email_field="no"]
phone_field: You can show/hide the phone field by this attribute. Available Options: yes | no. The default value is "no". Example usage:
[directorist_search_listing phone_field="no"]
address_field: You can show/hide the address field by this attribute. Available Options: yes | no. The default value is "no". Example usage:
[directorist_search_listing address_field="no"]
zip_code_field: You can show/hide the zip/postcode field by this attribute. Available Options: yes | no. The default value is "no". Example usage:
[directorist_search_listing zip_code_field="no"]
reset_filters_button: You can show/hide the reset filters button by this attribute. Available Options: yes | no. The default value is "yes". Example usage:
apply_filters_button: You can show/hide the apply filters button by this attribute. Available Options: yes | no. The default value is "yes". Example usage:
B) From Directorist Settings Page: You can display or hide the advanced search filters in the Directorist search page from the Directorist Search Settings Page. Visit Dashboard → Directory listings → Directory Settings → Search Listings page. In the SEARCH FORM SETTINGS section, set the Display More Filters option to "YES" to display the advanced filter in the search page. There are also some filter-related Options available on this page. You can use these Options to customize the filters however you like. You can control which fields to show/hide in the filter form using these Options. The description of them is given below.
Customizing Search Filters from the Search Settings Page
Open Filter Fields: You can set how you would like to display the filter form fields when a user clicks on the more filter button. Available Options: Sliding | Overlapping. Select the option you like and see the change in the front end. The default is Sliding
Filter Fields: Check the fields you would like to in the search filter in this option. Some field may need an additional add-on to work properly. For example, the Open Now filter filed needs Directorist Business Hour extension to work properly
Filters Button: Check the Reset and Apply button if you want to show them in the filter form. Uncheck them to hide them
More Filters Button Text: You can modify the text of the "More Filters" button using this field. Enter any text you want to show in the "More Filter" button in this text field. The default is "More Filters"
Reset Filters Button Text: You can modify the text of the "Reset Filters" button using this field. Enter any text you want to show in the "Reset Filter" button in this text field. The default is "Reset Filters"
Apply Filters Button Text: You can modify the text of the "Apply Filters" button using this field. Enter any text you want to show in the "Apply Filters" button in this text field. The default is "Apply Filters"
You can also check other settings on this page to customize the look and feel of the Directorist search page.