Hierarchical Taxonomy: Limit filter to one level

Forums › Forums › Search & Filter Pro › Hierarchical Taxonomy: Limit filter to one level

Viewing 2 posts – 1 through 2 (of 2 total)
  • Anonymous
    #6990

    Hi Ross,

    great plugin, have it running on archive-{post_type}.php, single-{post_type}.php and taxonomy.php and it works like charm!

    Just one question: I use a dropdown for a hierarchical taxonomy filter. Is it possible to limit the dropdown to just one level (let’s say the second one) of all terms?

    Taxonomy dropdown example
    – Term 1
    – Subterm 1
    – Subsubterm 1
    – Term 2
    – Subterm 2
    – Subsubterm 2

    The idea is to display only Subterm 1 & Subterm 2 in the dropdown.

    Cheers George

    Ross Moderator
    #7100

    Hey Hans

    This is not really possible, you could use the advanced settings in the field and exclude those sub terms by ID. Not ideal I know but the only way I can think to make it work like this.

    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.