Skip to main content

Common Filter Setups

These recipes show proven Filter Posts Item configurations for common scenarios. Each assumes you already have a Filter Posts block and Archive Loop on the page with matching post types—see Quick Start if not.

Blog: filter by category​

Goal: Visitors pick one category from a dropdown; posts update instantly.

Block / settingValue
Filter Posts → Post typePost
Filter Posts → Update methodOn change
Filter Posts Item → SourceCategories
Filter Posts Item → Filter typeSelect
Filter Posts Item → First option textAll categories
Archive Loop → Post typePost
Archive Loop → Main loopOn
Archive Loop → Loop templateBlog Style

Tip: Enable Show count on the item to display post counts beside each category.

Goal: Combine taxonomy filter with live keyword search.

Add two Filter Posts Item blocks inside one Filter Posts container:

Item 1 — Category

SettingValue
SourceCategories
Filter typeSelect

Item 2 — Search

SettingValue
SourceSearch
PlaceholderSearch articles…
Typing delay800 ms (lower = faster live search)

Set Filter Posts → Update method to On change so both fields trigger AJAX. See Live search.

Blog: tag checklist​

Goal: Multi-select tags with visible checkboxes.

SettingValue
SourceTags
Filter typeCheckbox / radio
Radio styleCheckbox (multi-select)
Multiple relationOR
Show “All” optionOn

Custom post type: custom taxonomy​

Goal: Filter a property CPT by property_type taxonomy.

SettingValue
Filter Posts → Post typeproperty
Filter Posts Item → SourceTaxonomy
Taxonomyproperty_type
Filter typeCheckbox / radio
Archive Loop → Post typeproperty

Replace slugs with your registered post type and taxonomy names.

WooCommerce: product category​

Goal: Shop page filtered by product category in a sidebar.

SettingValue
Filter Posts → Post typeProduct
Filter Posts → LocationSidebar (vertical)
Filter Posts Item → SourceCategories
Filter typeCheckbox / radio
Collapsible categoriesOn (optional)
Archive Loop → Post typeProduct
Archive Loop → Loop templateShop Style

Tutorial: Product category filter.

WooCommerce: price range​

Goal: Dual-handle slider from store minimum to maximum price.

SettingValue
SourceProduct price
Filter typeNumber / range
Range typeDouble (min + max)
Min priceStore
Max priceStore
Range prettifyOn (formats numbers)

Pair with category filters in the same Filter Posts block. Tutorial: Product price filter.

WooCommerce: attribute swatches (colour)​

Goal: Visual colour chips for a global attribute such as pa_colour.

SettingValue
SourceProduct attribute
Product attributepa_colour (or your attribute slug)
Filter typeCheckbox / radio
SwatchesOn
Swatch sourceWooCommerce
Swatch styleCircle

Ensure attributes have colour values configured in Products → Attributes.

WooCommerce: attribute dropdown (size)​

Goal: Compact size selector when swatches are not needed.

SettingValue
SourceProduct attribute
Product attributepa_size
Filter typeSelect
Enable Select2On (recommended for long size lists)

WooCommerce: stock status​

Goal: Let visitors hide out-of-stock products.

SettingValue
SourceStock status
Filter typeCheckbox / radio
Show empty optionsOff

WooCommerce: search products​

Goal: Keyword search within the product catalog.

SettingValue
SourceSearch
PlaceholderSearch products…
Typing delay1000 ms

Tutorial: Product search filter.

note

For search suggestions as visitors type, upgrade to WPEnhanced Ajax Filter Blocks Pro Auto Suggest.

Combining multiple filters​

A typical shop sidebar stacks items vertically inside one Filter Posts block:

  1. Product category (checkbox)
  2. Price range (slider)
  3. Colour (swatches)
  4. Size (select)

Set Filter Posts → Update method to On button click if you prefer visitors to click Apply before the loop refreshes—or On change for instant faceted updates.

Enable Hide empty options on page load on attribute items so only relevant choices appear after category selection. See Empty filter options.

Archive page with pre-scoped loop​

When the Archive Loop includes a category on load, add a matching category Filter Posts Item so the UI reflects the starting state. Enable URL sync globally so the address bar stays shareable—URL sync and shareable filters.

What's next​