Skip to main content

Blocks Overview

WPEnhanced Ajax Filter Blocks is built entirely for the WordPress block editor (Gutenberg). Every filtered archive page is assembled from three blocks that share a post type and communicate over AJAX—no page builder required.

The three blocks​

BlockPurpose
Archive LoopRuns the query and displays results—posts, products, or custom post types—in a grid or list layout with pagination.
Filter PostsContainer for your filter panel. Controls when filters update, layout, reset behaviour, and how the panel connects to loops.
Filter Posts ItemOne filter control (child of Filter Posts). Each item filters by category, search, price, custom meta, and more.
┌─────────────────────────────────────────┐
│ Filter Posts (container) │
│ ┌─────────────┐ ┌──────────────────┐ │
│ │ Filter Item │ │ Filter Item │ │
│ │ Category │ │ Search │ │
│ └─────────────┘ └──────────────────┘ │
└─────────────────────────────────────────┘
┌─────────────────────────────────────────┐
│ Archive Loop │
│ [Result] [Result] [Result] [Result] │
│ ← pagination / load more → │
└─────────────────────────────────────────┘

Typical page structure​

  1. Add an Archive Loop where results should appear.
  2. Add a Filter Posts block above or beside the loop.
  3. Insert one or more Filter Posts Item blocks inside Filter Posts—one per filter field.
  4. Set the same Post type on Filter Posts and Archive Loop (e.g. Post or Product).
  5. Mark the Archive Loop as Main loop when it is the primary target for filters on the page.

For a step-by-step first build, see Quick Start.

Where settings live​

Each block splits settings between Content (query, behaviour, layout) and Design (colours, typography, spacing). This reference focuses on content settings that affect filtering behaviour. Design panels follow the same patterns across blocks—background, border, spacing, and text styling.

BlockKey content panels
Archive LoopLoop options, loop template, grid, elements (pagination, result count)
Filter PostsMain, layout, extra, mobile
Filter Posts ItemMain, layout options, select/radio/range/search, empty options, counts

Connecting blocks​

On a simple page with one Filter Posts block and one Main loop Archive Loop sharing the same post type, blocks connect automatically. No manual wiring is needed.

Use Block selector ID on both Filter Posts and Archive Loop when you have multiple filter panels or loops on one page and need to pair them explicitly. See Filter panel and loop.

Free vs Pro at block level​

Most core filtering works in the free plugin. Pro extends specific block settings:

Setting areaFreePro
Archive Loop grid / masonryYesList view and grid/list switcher
Standard paginationYesLoad More, infinite scroll
Filter update on change or buttonYes—
Filter appearances (normal)YesToggle and slide appearances
Synchronize filter items—Yes
Scroll to loop after AJAX—Yes
Mobile filter toggle—Yes
ACF, map radius, post type filters—Yes
Conditional filter items—Yes

Get WPEnhanced Ajax Filter Blocks Pro

Block reference pages​

What's next​