-
Notifications
You must be signed in to change notification settings - Fork 0
Facet Type Range Slider
A min/max numeric range filter. Price, weight, distance, anything continuous.
Two <input type="number"> controls defining a min and max, with the data-derived bounds shown as placeholders/hints. The resolver matches with a numeric BETWEEN against the indexed value. The display slug is range.
- Price filtering
- Weight, dimensions
- Numeric custom meta (rating thresholds, duration, distance)
- Anything continuous and bounded
- Discrete numeric values with few options → use Checkbox or Radio
- Dates → use Date Range
- Open-ended values (no sensible max) → use Search with a numeric parser
{
"name": "price",
"kind": "meta",
"source": "_price",
"display": "range",
"label": "Price"
}| Field | Values | Default | What |
|---|---|---|---|
kind |
"meta" | "field"
|
— | Where the numeric value comes from |
source |
string | — | The meta/field key holding the number |
The min/max bounds are computed from the indexed values and shown as input hints — they are not configured. The facet has no display-specific settings in 1.0.0.
?hof[price][min]=10&hof[price][max]=200
Either side may be omitted for an open-ended range (e.g. only [max] for "up to 200", or only [min] for "100 and up").
WooCommerce price range:
{ "name": "price", "kind": "meta", "source": "_price", "display": "range" }Rating range (field source):
{ "name": "rating", "kind": "field", "source": "average_rating", "display": "range" }- Date Range — for temporal ranges
- Toggle — for boolean numeric thresholds (e.g. "on sale")
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