If you have a facet with a taxonomy or categories as data source, you may want to show only the parent terms/categories, and/or only one or more child levels.

This can be achieved with the facetwp_index_row hook.

This highly versatile hook can also be used to do all kinds of other manipulations of indexed facet choices.

See also

Last updated: April 3, 2025