Skip to main content

Search Facet

Search Facet renders a search input. Unlike option facets, it sends the typed value from the input instead of an authored option value.

Props

GroupPropDefaultMeaning
SettingstargetemptyShared target ID.
SettingsplaceholderSearch...Input placeholder.
Settingsargument_modedefaultSingle argument mode when multi-argument search is disabled.
Settingstarget_multiple_query_argumentsfalseRenders a query_bundle search input when enabled.
Settingsquery_argument_relationANDRelation for multi-argument search mappings.
Default Query Argumentfacet_keysearchQuery argument for default mode.
Meta Argumentmeta_key, meta_compare, meta_type``, LIKE, charMeta query settings.
Taxonomy Argumenttaxonomy, tax_field``, slugTaxonomy search settings.
Date Argumentcolumnpost_dateDate query column.
ACF Relationship Argumentmeta_keyemptyRelationship field stored on filtered posts.
Query Argument Mappingsmapping_key, mode-specific propsemptyMulti-argument search rows.
Stylingclassome-search-facet-defaultInput class.

Default Query Keys

Search Facet supports filter-focused keys:

search, p, title_like, name_like, post_type, category_name_like, tag_like, author, author_name_like, year, monthnum

Use Search Facet for text input and partial matching. Use an option facet when users should choose from known values.

When target_multiple_query_arguments is true, the rendered input type is query_bundle. The typed value is copied into every row in query_argument_mappings.

target_multiple_query_arguments = true
query_argument_relation = OR
query_argument_mappings:
- native-search -> default search
- priority -> meta facet_priority LIKE char

This makes one input search across native search and a meta field.

ACF relationship mode expects numeric related post IDs. It filters the relationship field stored on the posts being filtered.