Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Show Taxonomy filter › Reply To: Show Taxonomy filter
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!
Best,Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)