WP Manifestindependent plugin directory
manifest / editor / current-post-terms-query

Current Post Terms Query WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

Extend WordPress term query to limit to current post terms

★ 0stars
4composer installs
v1.0.3latest · 3mo ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/horttcore/current-post-terms-query/archive/refs/heads/main.zip

On Packagist as ralfhortt/current-post-terms-query:

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

A WordPress plugin that adds a Show only terms of the current post option to Terms Query blocks.

When enabled, a Terms Query block displays only terms assigned to the post currently being viewed. The editor preview and rendered block output use the same filtering behavior.

Requirements

  • WordPress 6.1 or later
  • PHP 8.1 or later

Installation

Install the plugin with Composer:

composer require ralfhortt/current-post-terms-query

Alternatively, download or clone this repository into wp-content/plugins/current-post-terms-query.

If you are building from source, install the JavaScript dependencies:

npm install

Build the editor assets:

npm run build

Finally, activate Current Post Terms Query in WordPress.

Usage

  1. Add a Terms Query block to a template or post.
  2. Select a taxonomy.
  3. Enable Show only terms of the current post in the block settings.

If the Terms Query has configured included term IDs, the result is limited to the intersection of those IDs and the current post's terms.

In the Site Editor, the preview skips template and template-part editing contexts so it does not treat the template itself as the current post. On the server, filtering only runs when an explicit postId is available in block context; template parts without post context remain unfiltered.

Development

Build the production editor bundle:

npm run build

Start the development watcher:

npm run start

The PHP filter is implemented in src/CurrentPostTermsQueryFilter.php. Editor controls and preview behavior are implemented in src/js/editor/.

Author

Ralf Hortt

License

GPL-2.0-or-later. See the GNU General Public License.

Releases

4 releases.

Tag
Published
v1.0.3 latest
Jul 14, 2026 3mo ago
Jul 14, 2026 3mo ago
Jul 13, 2026 3mo ago
Jul 13, 2026 3mo ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

Current Post Terms Query 1.0.0 · audited by WP Registry

No security issues found.

Audited release
1.0.0
Findings
none
Worst severity
—
Content hash
6d1dcb06096ada79be5667f4…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.