The fSelect facet type generates a dropdown combo-box. It supports multi-select, and also includes a search box to narrow choices.


Available Options

Name Description
Data Source Where the values live (taxonomy, custom field, post attribute)
Multi-select? If “Yes”, this facet type will accept multiple selections, and will display a checkbox-style UI.
Default Label Set the label for the first dropdown option (default: “Any”)
Parent term If Data Source is a hierarchical taxonomy and you want to display only child terms, enter the parent term’s ID.
Sort by Sort facet choices by Facet Count, Display Value, Raw Value, or Term Order
Hierarchical Whether to indent child terms
Behavior How the facet reacts when clicked (appears only for Multi-select)

  • Narrow the result set – “AND” operator
  • Expand the result set – “OR” operator
Show ghosts Show choices that would return zero results?
Preserve ghost order Keep ghost choices in the same order (mixed with valid choices)?
Count The number of options to display

Hide Counts

To hide counts from all dropdowns, add the following to your theme’s functions.php:

add_filter( 'facetwp_facet_dropdown_show_counts', '__return_false' );

To hide counts from specific facets, 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 );

Hide the Search Box

add_filter( 'facetwp_render_output', function( $output ) {
    $output['settings']['YOUR_FACET_NAME']['showSearch'] = false;
    return $output;