Limiting taxonomies in search form

Forums › Forums › Search & Filter Pro › Limiting taxonomies in search form

Viewing 4 posts – 1 through 4 (of 4 total)
  • Anonymous
    #3782

    Is there a way to limit the taxonomies that show up in a search form, based on their parent taxonomy? I’m building a site with a clothing directory and have different search forms for Men’s and Women’s clothing (Men and Women are custom post type categories), along with separate sub-categories for each.

    I’ve been able to limit the results from each form using the code supplied here: https://support.searchandfilter.com/forums/topic/limiting-search-results-to-a-specific-category/. I’d really like a way to limit the taxonomy terms that appear on the search form without having to individually add the terms to exclude each one, as it will be upwards of 30-40 terms to exclude.

    Ross Moderator
    #3822

    Hey Jennifer, currently you have to exclude using IDs… I’m thinking of adding an include option as well, so you would only need to list the categories you wish to include which I think is what you are after?

    Thanks

    Anonymous
    #3823

    Yep, having a list of IDs to include would make things a LOT easier!

    Ross Moderator
    #5465

    Hey Jennifer – this functionality has now been added to the plugin in the latest update 🙂

Viewing 4 posts – 1 through 4 (of 4 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.