Title: Query Loop Exclude Posts
Author: ColinD
Published: <strong>December 20, 2024</strong>
Last modified: January 20, 2025

---

Search plugins

![](https://s.w.org/plugins/geopattern-icon/query-loop-exclude-posts.svg)

# Query Loop Exclude Posts

 By [ColinD](https://profiles.wordpress.org/colind/)

[Download](https://downloads.wordpress.org/plugin/query-loop-exclude-posts.1.1.0.zip)

 * [Details](https://wordpress.org/plugins/query-loop-exclude-posts/#description)
 * [Reviews](https://wordpress.org/plugins/query-loop-exclude-posts/#reviews)
 * [Development](https://wordpress.org/plugins/query-loop-exclude-posts/#developers)

 [Support](https://wordpress.org/support/plugin/query-loop-exclude-posts/)

## Description

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

 * [[
 * The controls are added to the query loop block’s settings sidebar.

## Reviews

![](https://secure.gravatar.com/avatar/2be20d0232e68f35177b08283ef877440ef8066206cfa2a2ae09343eb886f870?
s=60&d=retro&r=g)

### 󠀁[Does exactly what it says!](https://wordpress.org/support/topic/does-exactly-what-it-says-264/)󠁿

 [Ryan Townley](https://profiles.wordpress.org/ryantown/) February 23, 2025

Yet another feature that should be in the core Query Loop block, but is not. This
plugin comes to the rescue! Perfect for excluding posts when an offset isn’t enough
or excluding the current post when using the Query Loop block for “latest posts”
in the sidebar or footer, for example. Thanks!

 [ Read all 1 review ](https://wordpress.org/support/plugin/query-loop-exclude-posts/reviews/)

## Contributors & Developers

“Query Loop Exclude Posts” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ ColinD ](https://profiles.wordpress.org/colind/)

[Translate “Query Loop Exclude Posts” into your language.](https://translate.wordpress.org/projects/wp-plugins/query-loop-exclude-posts)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/query-loop-exclude-posts/),
check out the [SVN repository](https://plugins.svn.wordpress.org/query-loop-exclude-posts/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/query-loop-exclude-posts/)
by [RSS](https://plugins.trac.wordpress.org/log/query-loop-exclude-posts/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1.0

 * Fixed bug when used in the Site Editor where the exclude current post toggle
   
   would cause an error resulting in an endlessly spinning loading wheel in the 
   query loop.

#### 1.0.0

*initial release

## Meta

 *  Version **1.1.0**
 *  Last updated **1 year ago**
 *  Active installations **100+**
 *  WordPress version ** 6.6 or higher **
 *  Tested up to **6.7.5**
 *  PHP version ** 8.0 or higher **
 *  [Advanced View](https://wordpress.org/plugins/query-loop-exclude-posts/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/query-loop-exclude-posts/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/query-loop-exclude-posts/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/query-loop-exclude-posts/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/query-loop-exclude-posts/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/query-loop-exclude-posts/reviews/?filter=1)

[Add my review](https://wordpress.org/support/plugin/query-loop-exclude-posts/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/query-loop-exclude-posts/reviews/)

## Contributors

 *   [ ColinD ](https://profiles.wordpress.org/colind/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/query-loop-exclude-posts/)