Tell us what you are trying to do?
Search view working well, for this site, still in dev, I only need to display parent WooCommerce taxonomy checkboxes (no WooCommerce child tax) or even exclude some.
Is ti possible with a custom function ?
[wpv-control-post-taxonomy taxonomy="product_cat" type="checkboxes" url_param="wpv-product_cat"]
Is there any documentation that you are following?
Nothing find with this specific subject.
Is there a similar example that we can see?
What is the link to your site?
Search : hidden link
Result : hidden link
Greetings from Quebec,
Rémy
Hi, there's not an easy way to filter these terms by hierarchy, but you could use CSS to achieve something similar. Hide all the checkbox labels and turn on specific labels like this:
.page-boutique-categorie .mainContent .checkbox label {
display: none;
}
.page-boutique-categorie .mainContent .checkbox label[for="product_cat-25ieme-anniversaire"] {
display: block;
}
.page-boutique-categorie .mainContent .checkbox label[for="product_cat-bijoux-anciens"] {
display: block;
}
It's not automatic, but it could work well if your parent terms do not change much over time.
Thanks Christian.
Already tried the CSS alternative, not effective enough.
I made an hybrid soltuion, a little bit of Toolset and more of WP get_terms/get_term_children, plus Bootstrap collapse for show/hide child.
Bottom left column : hidden link
Next challenge, filter range price 😉
Cheers