// Checkboxes

Overview

The checkbox facet type lets users select multiple values.

facet-type-checkboxes

Available Options

Name Description
Data Source Where the values live (taxonomy, custom field, post attribute)
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
Behavior How the facet reacts when clicked

  • Narrow the result set – “AND” operator
  • Expand the result set – “OR” operator
Hierarchical Whether to indent child terms (this option only appears if Data Source is a taxonomy)
Show expanded Should child terms be visible by default?
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
Soft limit The number of options before showing the “See more” link. Set to 0 to display all options.

Hide Counts

To hide counts, add this CSS into your theme’s style.css:

.facetwp-counter {
    display: none;
}