Query Loop Exclude Current Post WordPress Plugin | Codefreex Skip to content
Query Loop Exclude Current Post icon

WordPress plugin

Query Loop Exclude Current Post

Keep the post someone is reading out of your Query Loops, so related-post sections never repeat the page they're on.

By Lauren @ Small Plugins
Version
0.0.8
Last updated
Nov 18, 2026
Tested up to
WordPress 7.1.5
Requires
WP 5.8.3 · PHP 5.6

Health check

Is Query Loop Exclude Current Post safe to rely on?

Our reading of the public WordPress.org data: maintenance, compatibility, ratings and support.

Actively maintained

Last updated on November 18, 2026. Regular updates usually mean bugs and security reports get fixed.

Tested with current WordPress

The author has tested it up to WordPress 7.1.5.

Requires PHP 5.6 or newer

Check your hosting PHP version before installing. Modern PHP is faster and receives security fixes.

Rank tracker

Where Query Loop Exclude Current Post ranks in WordPress.org search

Its position in WordPress.org plugin search for its tags and name, refreshed weekly so you can see how its visibility changes.

WordPress.org search positions for Query Loop Exclude Current Post
KeywordPositionChangeTrendCurrent #1
current post(WordPress.org search, opens in a new tab)Not in top 100First checkPost SMTP – Complete Email Delivery and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App300K+ installs
exclude(WordPress.org search, opens in a new tab)Not in top 100First checkSearch Exclude50K+ installs
query block(WordPress.org search, opens in a new tab)Not in top 100First checkQuery Monitor200K+ installs
query loop(WordPress.org search, opens in a new tab)Not in top 100First checkAdvanced Query Loop10K+ installs
related posts(WordPress.org search, opens in a new tab)Not in top 100First checkContextual Related Posts50K+ installs
query loop exclude(WordPress.org search, opens in a new tab)30First checkAdvanced Query Loop10K+ installs

Checked against the top 100 WordPress.org search results on .

Overview

What Query Loop Exclude Current Post does

A “You might also like” section at the bottom of a post usually pulls from the same category as the post itself, which means the post someone is already reading often shows up in its own related list.

This plugin adds a single toggle to the Query Loop block called Exclude Current Post. Switch it on and that loop leaves out whichever post is being viewed, so the list always shows something else.

Select a Query Loop block, open the block settings sidebar, and turn on Exclude Current Post.

The setting belongs to that one block, so you can have several Query Loops on the same page with the toggle on for some and off for others.

The post is removed before the posts-per-page limit is applied, so a loop set to show three posts still shows three, not two.

It works on the front end and in the editor preview, so what you see while building the page matches what visitors get.

There is nothing to configure. The plugin adds the one toggle to the Query Loop block and does nothing else.

Description from the author's listing. Read the full listing on WordPress.org

Screenshots

Query Loop Exclude Current Post in action

A related posts Query Loop on an article about Easy Pasta Bake. Left as it is, the loop lists the post the reader is already on. With Exclude Current Post switched on, only the other recipes remain.
A related posts Query Loop on an article about Easy Pasta Bake. Left as…

FAQ

Query Loop Exclude Current Post: questions and answers

What is Query Loop Exclude Current Post?

Query Loop Exclude Current Post is a WordPress plugin by Lauren @ Small Plugins. Keep the post someone is reading out of your Query Loops, so related-post sections never repeat the page they're on.

Is Query Loop Exclude Current Post free?

Query Loop Exclude Current Post is listed in the WordPress.org plugin directory, so the version there is free to download and use. Some authors also sell paid add-ons or a premium edition with more features and support.

Is Query Loop Exclude Current Post still maintained?

Query Loop Exclude Current Post was last updated on November 18, 2026. The current version is 0.0.8. Check the changelog on WordPress.org and test updates on a staging site before applying them to a live site.

What does Query Loop Exclude Current Post require?

Query Loop Exclude Current Post requires WordPress 5.8.3 or newer and PHP 5.6 or newer. It has been tested up to WordPress 7.1.5.

Can Codefreex set up or customize Query Loop Exclude Current Post?

Yes. Codefreex installs, configures and customizes WordPress plugins including Query Loop Exclude Current Post, fixes conflicts and performance problems, and builds custom features when a plugin does not do exactly what you need. Send your site URL for a free review.

Free expert review

Need Query Loop Exclude Current Post set up, customized or fixed?

Tell us about your site and what you need this plugin to do. A senior WordPress developer replies within one business day with a plan and a quote.

Built this plugin yourself? We help WordPress product teams with development, support load and growth. Talk to us