The following code will add the ability to enable hierarchy filtering in Conductor Widgets when the Filtering add-on is active.

Hierarchy filtering allows the filter options to be narrowed down based on the currently selected filter. This is useful for drilling down content even further by diving into child and grandchild terms.

Please customize the following code to fit your needs. The Filtering add-on will likely support this functionality in a future version which means that this Gist will no longer be necessary at that time.

Place the following code in your child theme’s functions.php file.