This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Show Taxonomy filter

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10841
    ThBunteThBunte
    Participant

    Actual the website is under Maintenance, because we in development.
    We create a CustomPostType with an own hierachical Taxonomy called “Produktgruppen”. The Taxonomy has 127 values down to 3rd level and 7 elements on first level.

    Target was to create a Filter Setting where you can choose one of these first level values and get the related taxonomy values under the choosen hierachy.
    But we still get always all taxonomy values.

    What do we made wrong?

    #10843
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    If I understand correctly you would want to display only the top level taxonomy terms and only display the child terms of it, once it’s selected.

    Unfortunately there is no such feature built in the plugin, you will need a custom code for that. Luckily this should not be too complicated, I’ve put together a possible solution to start off. Use it in the functions.php file in your active theme directory to include:

    This basically does the following:
    – Upon loading, if a checkbox is unchecked then hides all of it’s children (sub categories)
    – Upon clicking hides/shows the sub-categories depending on the checkbox status

    So basically it will only display the checkboxes under a category, if the parent is checked. I hope this helps!

    #10852
    ThBunteThBunte
    Participant

    First of all, tnx for quick response. My first test didn’t fix the problem.
    But i went know out for 3days to promote the new Portal on a exhibition and could check it at friday again.

    Bye Thomas

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.