Query Loop Exclude Posts

Extends the Query Loop Block to allow excluding specific posts.

Author:Colin Duwe (profile at wordpress.org)
WordPress version required:6.6
WordPress version tested:6.7.1
Plugin version:1.1.0
Added to WordPress repository:20-12-2024
Last updated:20-01-2025
Rating, %:100
Rated by:1
Plugin URI:
Total downloads:1 236
Active installs:100+
plugin download
Click to start download

Extends the Query Loop Block to allow excluding specific posts.

  1. Provides controls in the Query Loop Block Select specific posts by title.
  2. Provides a toggle to exclude the current post.

Works with whichever post type is set for the query loop Block (Post, Page, etc)

“Exclude Current Post” is helpful for “related posts” patterns often used on a single
post template. Using this option on the query loop block will let it pull in posts but
not the single post currently being viewed.

Development and Support

wp
This plugin is developed on Github. You can find the uncompressed source javascript and
submit issues and pull requests there:
https://github.com/colinduwe/exclude-posts

If you’ve checked out the full source code either from my repo or your own fork you’ll
want to do the following in your terminal:
1. Navigate within this plugin’s directory.
2. Install the development dependencies by running ‘npm install’
3. Work on the plugin code by running ‘npm start’
4. Complete your work by building for production by running ‘npm run build’


Screenshots
ChangeLog