- November 14, 2016 at 10:12 am #10841
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?November 14, 2016 at 4:25 pm #10843
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!Best,
If you like my products, don't forget to rate them on codecanyon :)
November 14, 2016 at 7:15 pm #10852
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.
You must be logged in to reply to this topic.