FacetWP Hierarchy Select facetThis add-on lets you create guided dropdowns based on a hierarchical taxonomy.

Adding the facet

  • Create a new facet, and set the Facet type to Hierarchy select
  • Add the facet to your listing page(s)

Available options

Name Description
Data Source The taxonomy to pull values from.
Sort by Sort facet choices by:

  • Highest count – sorts by the total number of results with that value.
  • Display value – sorts alphabetically according to the label you see on the facet choices.
  • Raw value – sorts by the value that tracks the facet choices. For example in a dropdown, this is the option value rather than the option label. You can see the raw values in the url after making facet selections.
  • Term order – sorts by taxonomy term order. This option uses term_order which is only available when using a plugin that sets an explicit order for taxonomy terms. FacetWP supports:
Depth {n} labels Dropdown labels (click “Add Label” button to add more). Note: the depth labels are translatable with the facetwp_i18n hook.

Hide counts

To hide counts from all facets of a type that use a dropdown UI (all Hierarchy Select facets facets, Dropdown facets, and fSelect facets, and Range List facets (in dropdown or fSelect UI mode)), add the following to your theme’s functions.php:

add_filter( 'facetwp_facet_dropdown_show_counts', '__return_false' );

If you want to hide counts from specific facets with a dropdown UI, then use this instead:

add_filter( 'facetwp_facet_dropdown_show_counts', function( $return, $params ) {
    if ( 'your_facet_name' == $params['facet']['name'] ) {
        $return = false;
    return $return;
}, 10, 2 );



  • Improved removed jQuery dependency


  • New added "Term order" ordering support

See also