Taxonomy – Change All Items to display zero results

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)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.