WP Manifestindependent plugin directory
manifest / editor / query-filter

Query Loop Filters #2 in Blocks & Editor

Filter controls for the query loop block, using the interactivity API

★ 124stars
183release downloads
≈30active sites
33kcomposer installs
v0.6.0latest · 1d ago

Install

Download query-filter-v0.6.0.zip From the v0.6.0 release on GitHub, Oct 21, 2026

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/humanmade/query-filter/releases/download/v0.6.0/query-filter-v0.6.0.zip

On Packagist as humanmade/query-filter:

composer require humanmade/query-filter
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

image

This plugin allows you to easily add filters to any query loop block.

Provides 2 new blocks that can be added within a query loop block to allow filtering by either post type or a taxonomy. Also supports using the core search block to allow you to search.

Compatible with both the core query loop block and the Advanced query loop plugin (In fact, in order to use post type filters, use of the Advanced Query Loop plugin is required).

Easy to use and lightweight, built using the WordPress Interactivity API.

Usage

  • Add a query block. This can anyhere that the query block is supported e.g. page, template, or pattern.
  • Add one of the filter blocks and configure as required:
    • Taxonomy filter. Select which taxonomy to to use, customise the label (and whether it's shown), and customise the text used when none is selected.
    • Post type filter. Customise the label (and whether it's shown), as well as the text used when no filter is applied.
    • Search block. No extra options.

image

Installation

Using Composer

This plugin is available on packagist.

composer require humanmade/query-filter

Manually from Github.

  1. Download the plugin from the GitHub repository.
  2. Upload the plugin to your site's wp-content/plugins directory.
  3. Activate the plugin from the WordPress admin.

Built assets are not committed to main. Manual or Composer installs should track the release branch (or a tagged release), which contains the compiled build directory.

Local Development

This project uses wp-env to run a lightweight, containerized WordPress instance at localhost:3031 for testing purposes. The default username for the localhost environment is admin, with the password password.

These commands can be used to interact with the environment:

Command Purpose
npm run env:start Start the local environment at http://localhost:3031
npm run env:stop Turn off the local environment
npm run env:cli -- wp ... Run WP-CLI commands within the environment
npm run env:logs Open (and tail) the error logs for the application‡
npm run env:db Open the database in the mysql command line
npm run env:destroy Fully destroy the local environment (deletes container database)

‡ This command deliberately filters out GET/OPTIONS/HEAD/POST/PUT access log entries

Testing

End-to-end tests run against WordPress Playground, which boots in process — there is no environment to start or stop:

npm ci
npm run build   # tests run against build/, not src/
npm run test:e2e
Command Purpose
npm run test:e2e Run the Playwright suite
npm run test:e2e:debug Step through tests in the Playwright inspector
npm run test:e2e:watch Open the Playwright UI, rerunning on change
npm run playground:start Boot the same environment for manual testing, without running tests

The environment is described by blueprint.json and is shared between the test run and manual use. See tests/e2e/README.md for the fixture content and how to write tests.

Every pull request also gets a Preview in WordPress Playground button added to its description, which boots that PR's build with demo content already in place — no local checkout needed to try a change.

Release Process

Releases are cut by a manually-dispatched "Release" GH Actions workflow, which builds the plugin, stamps the version into query-filter.php, and creates an immutable vX.Y.Z tag pointing at the built, versioned code. That tag is published to Packagist and attached to a GitHub release as a downloadable ZIP.

To cut a new release:

  1. Choose the target version number using semantic versioning.
  2. On the "Release" GH Action page, click "Run workflow".
  3. Fill out the "Version" field without a leading v, e.g. 1.2.3.
  4. Click "Run workflow".

There is no "prepare release" pull request — the version number is supplied to the workflow and never lives on main, where the Version header is always the literal placeholder __VERSION__.

Separately, merges to main automatically build to the release branch. A project may track the release branch using Composer to pull in the latest built beta version. The release branch is not versioned and is not involved in cutting a tagged release.

See RELEASE.md for the full process, including what ships in the ZIP and how to cut a release by hand.

Releases

18 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
v0.6.0 latest
Oct 21, 2026 1d ago
query-filter-v0.6.0.zip
4
Sep 23, 2026 29d ago
query-filter-v0.5.0.zip
38
Sep 2, 2026 1mo ago
query-filter-v0.4.2.zip
30
Aug 27, 2026 1mo ago
query-filter-v0.4.1.zip
81
Aug 12, 2026 2mo ago
query-filter-v0.4.0.zip
30
Jul 23, 2026 3mo ago
tag only
—
Jun 24, 2026 4mo ago
tag only
—
Jun 23, 2026 4mo ago
tag only
—
Feb 24, 2026 8mo ago
tag only
—
Dec 4, 2025 10mo ago
tag only
—
Dec 3, 2025 10mo ago
tag only
—
Feb 12, 2025 1 year ago
tag only
—
Nov 5, 2024 1 year ago
tag only
—
Nov 1, 2024 1 year ago
tag only
—
Oct 31, 2024 1 year ago
tag only
—
Sep 6, 2024 2 years ago
tag only
—
Sep 6, 2024 2 years ago
tag only
—
Sep 6, 2024 2 years ago
tag only
—

Active-site estimate ≈30 comes from the median of recent superseded releases. Method.