-
Notifications
You must be signed in to change notification settings - Fork 0
Facet Type Hierarchy
SHEPDESIGN edited this page Jun 4, 2026
·
3 revisions
Tree-shaped facet for nested taxonomies. Categories with subcategories, locations with regions, etc.
A nested, indented list for hierarchical taxonomies, rendered from the taxonomy's own parent/child structure. It requires a taxonomy source — for any other source it falls back to the checkbox renderer at runtime.
- Multi-level product categories (Clothing → Tops → T-Shirts)
- Location taxonomies (Country → State → City)
- Knowledge bases with topic trees
- Any taxonomy where parent/child relationships are meaningful
- Flat taxonomies → use Checkbox
- Single-select hierarchy → use Dropdown with grouped options
- Trees deeper than ~4 levels → consider drill-down navigation outside the facet
{
"name": "category",
"kind": "taxonomy",
"source": "product_cat",
"display": "hierarchy",
"label": "Category"
}| Field | Values | Default | What |
|---|---|---|---|
kind |
"taxonomy" |
— | Required; non-taxonomy sources fall back to checkbox |
source |
string | — | The hierarchical taxonomy slug (e.g. product_cat) |
The tree is built from the taxonomy's own parent/child relationships and indented per level. It has no display-specific settings in 1.0.0.
?hof[category]=tops,t-shirts
Comma-separated term slugs.
WooCommerce category tree:
{ "name": "category", "kind": "taxonomy", "source": "product_cat", "display": "hierarchy" }Geographic taxonomy:
{ "name": "location", "kind": "taxonomy", "source": "locations", "display": "hierarchy" }hooked on facets · Filtering, finally fun. · GitHub · hookedonfacets.com
Filtering, finally fun.
📖 docs
🧠 concepts
🎛️ facet types
- All Types
- Checkbox
- Radio
- Dropdown
- Range Slider
- Date Range
- Search
- Hierarchy
- Color Swatch
- Swipe Deck
- Spin the Wheel
- Intersection Matrix
- Ask
- Visual DNA
- Toggle
- Saved Bin
- Pagination
🔧 develop
🗺️ project