Query Filter: Add Parent, Child of options for Taxonomy - Terms filter

Now that’s interesting. With ‘populated_options’ I got this so far:

Child of current term toggle - basically {term_id} in child_of field.

But I found that I can also modify the filter depending on what is actually filtered:

  • Child of currently filtered term
  • Hierarchical accordion
  • Hierarchical partial accordion (shows all children of topmost parent)

And everything working with element ajax reload. Somehow

filter-ajax-accordion

.

Still need some work but posting it if anyone want to test it.