web_fsearch_facet Shortcode
The web_fsearch_facet shortcode renders one configured faceted-search facet.
Usage
[web_fsearch_facet id="facet-id" context="context-id"]
Attributes
| Attribute | Default | Accepted values | Purpose |
|---|---|---|---|
id |
— | A facet ID generated for the selected context | Selects the configured facet to render. |
context |
— | A configured Faceted Search context ID | Connects the facet to the result area and related controls. |
label |
— | Plain text | Adds an optional visible label. |
class |
— | String unless stated otherwise | Adds one or more custom CSS classes to the rendered control. |
Faceted search context
Enable and configure Faceted Search in Settings → POM Theme → Content model → Faceted search. Controls, results, and gateways that belong together must use compatible context values.
Use the copy controls in the Faceted Search context editor. Do not invent facet or context IDs.
An omitted or empty label displays no heading. The internal configured label is not exposed by this shortcode. Missing or disabled references render nothing. When context is omitted, the facet ID must identify exactly one enabled context; ambiguous IDs require an explicit context. The Gutenberg Faceted Search Facet block shares assets and explicitly follows the configured label when its own label is empty.
Verification
Test web_fsearch_facet with the configured Faceted Search context, active selections, no selections and an empty result set. Pay particular attention to id and context.