Query Loop Exclude Current Post extends the Query Loop block by adding the ability to exclude the current post. This guide will show you how to use the plugin to create more relevant post lists.
Step 1: Install and Activate the Plugin
- Download the plugin’s ZIP file.
- Go to your WordPress dashboard, navigate to Plugins > Add New.
- Click Upload Plugin and choose the ZIP file.
- Click Install Now and then Activate.
Step 2: Add a Query Loop Block
- Go to Posts > Add New or edit an existing post.
- Add a Query Loop Block to your post.
Step 3: Exclude the Current Post
- In the block settings, enable the option to exclude the current post.
- Customize the query to display other related or recent posts.
Step 4: Preview and Publish
- Preview the post to ensure the current post is excluded.
- Click Publish to make the post live.
Tips:
- Use this plugin to create more relevant post lists, especially in related posts sections.
- Combine this with other query settings to further refine your content display.
Conclusion
Query Loop Exclude Current Post is a simple yet effective tool for improving your post lists. Follow this guide to exclude the current post and enhance your site’s content relevance.