- This topic has 1 reply, 2 voices, and was last updated 10 years, 1 month ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Taxonomy – Change All Items to display zero results
In the Search Form UI I’m using Taxonomy with the input type being a dropdown. I want to make the pre-set All Items display zero results.
I understand I can change the label, which I’ve already changed to “Select an Item” so having it display all results isn’t ideal. Because of this I need help adjusting the All Items functionality to display zero results instead of displaying all results.
Thanks!
There isn’t a feature in the plugin to set this up, but it is technically possible with some custom coding.
What you would need to do is edit the template for your search results – you must then conditionally display the results loop depending on whether a user has made a selection or not in the search form.
You can check user selections using this class:
http://www.designsandcode.com/documentation/search-filter-pro/accessing-search-data/
Thanks