Forums Forums Search & Filter Pro Taxonomy – Change All Items to display zero results

Viewing 2 posts - 1 through 2 (of 2 total)
  • Anonymous
    #32523

    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!

    Ross Moderator
    #32625

    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

Viewing 2 posts - 1 through 2 (of 2 total)