Exclude Posts Plugin

WordPress’s Query Loop Block is vital to building block theme sites but it’s missing a a critical feature: The ability to exclude specific posts. I’ve created the Query Loop Exclude Posts plugin to add that. Here’s a super common pattern seen on many blogs: a set of related posts displayed at the end of the post content.

But it needs to always exclude the current post. If you’ve just read “RMM Evaluation Checklist” it shouldn’t show as a related resource here.

Similarly, if you promote your blog on your homepage, maybe you have a post you want to promote and want to ensure it doesn’t appear in the list of latest posts.

The plugin provides a simple UI to manage these scenarios.

Simply toggle the switch to exclude the current post the results or add specific posts by title. This plugin will work for any post type.