Complementor/Exclude current post
Content / extension · Elementor module

Exclude Current Post Plugin for Elementor

Keep the post a visitor is reading out of Elementor Pro Posts and Loop Grid lists on that same post, using one Query ID.

Included in All AccessElementor Pro requiredFrom $29 USD / year
Complementor / Exclude current postProduct preview
An existing Posts or Loop Grid query

Keep this post out
of its own list.

Query IDcomplementor_exclude_current

Configuration preview. Requires Elementor Pro.

Query extension · No additional widget
01 / Interactive demonstration

Before and after on a single post

The illustration compares a query with and without the exclusion. The screenshots below are actual captures: the Query ID entered in an Elementor Pro Posts widget, and the published post where the tagged list no longer contains the current article.

Example appearanceIllustrative query presentation
Enter this Query ID in a supported Elementor Pro widgetcomplementor_exclude_current
Before exclusion
Current article This post
Another article
A third article
After exclusion
Another article
A third article

The queried current-post ID is removed.

Illustrated query result, not a live Elementor Pro query. The remaining posts depend on your existing query settings.

02 / Inside WordPress

Add the Query ID in Elementor Pro

Exclude current post is a query extension, so it adds no widget. Open the Query section of an Elementor Pro Posts or Loop Grid widget and enter complementor_exclude_current in the Query ID field. Source, include/exclude rules, ordering and pagination keep working as configured.

03 / Website use cases

Where to use exclude current post

A 'More articles' or 'Related posts' list on a single post template usually includes the article the visitor is already reading. Exclude current post removes that post from any Elementor Pro query you tag with its Query ID, while the rest of your query settings stay as they are.

01

Related articles on blog posts

Show 'More from the journal' under each article without repeating the article itself.

02

Other projects or services

On a portfolio or service post type, list the other entries from the same query on every single page.

03

Single post templates in Theme Builder

Add the Query ID once in a Theme Builder single template so every post it renders excludes itself.

04 / Installation and setup

How to exclude the current post from an Elementor query

Start with Complementor installed and your license connected. Enable this module in the WordPress library, then configure it in Elementor.

  1. Install Complementor with Elementor Pro, connect your license and enable Exclude current post in the Complementor library.

  2. Open the single post template, or the post itself, in Elementor and select the Posts or Loop Grid widget that lists other posts.

  3. In Content › Query, enter complementor_exclude_current in the Query ID field.

  4. Keep your existing Source, Include/Exclude, Order By and Pagination settings; the extension only removes the post being viewed.

  5. Publish and open a published post: the list shows other posts and fills the same number of slots when more posts exist.

05 / Content and style controls

Customize exclude current post in Elementor

Configure the settings available for this module to suit the page you are building.

  • One Query ID, complementor_exclude_current, entered in the Query section of Elementor Pro query widgets such as Posts and Loop Grid.

  • Removes the currently viewed post on single posts, pages and custom post types, and keeps any posts you already excluded.

  • When the query uses a manual Include list, the current post is also removed from that list so it cannot reappear.

  • Works alongside your existing source, taxonomy, ordering, offset and pagination settings without changing them.

06 / Choose the right approach

Exclude current post and Elementor alternatives

Compare the existing Elementor workflow with this Complementor module before choosing your setup.

Elementor Pro Avoid Duplicates and manual Exclude

Elementor Pro's Exclude › Avoid Duplicates skips posts already shown by other widgets on the page, and you can exclude chosen posts by hand. Prefer those when the duplicates come from other widgets or a fixed list; use this extension when the post being read must always be left out.

Custom code with elementor/query hooks

Elementor documents custom query filters for developers. Write your own callback if you need more complex rules; this extension packages the common current-post exclusion so no code is needed.

07 / Requirements and compatibility

Exclude current post compatibility with Elementor

WordPress 6.5+PHP 8.0+Elementor 3.25+ & Pro
  • Requires Elementor Pro with a widget that offers a Query ID; Elementor free has no Query ID field.
  • Applies on single posts, pages and custom post type entries; archives and the editor preview are unchanged.
  • Verified with the Elementor Pro Posts widget on Elementor 4.3.4; other Pro query widgets use the same Query ID mechanism.
  • One Query ID per widget; combine with your own code by adding the exclusion inside your existing callback.

Complementor uses classic Elementor APIs. Atomic-native controls are not implemented. Check your theme, cache and integrations on a staging site before release.

08 / Common setup problems

Troubleshoot exclude current post

Check these settings if the published page behaves differently from the editor.

Why does the editor preview still show the current post?

The editor renders widgets through a background request that is not the single post view, so the exclusion is applied on the published page. Open the published post or the preview to check the result.

Why is nothing excluded?

Check that the Query ID is exactly complementor_exclude_current, that Exclude current post is enabled in the Complementor library and that Elementor Pro is active. Archive and listing pages are not changed because there is no single current post.

Why does the list show fewer posts than the limit?

If your query matches only a few posts, removing the current post leaves one fewer item. With more matching posts the next post fills the slot.

Can I use another Query ID on the same widget?

A widget has one Query ID. If you already use a custom Query ID for your own code, add the exclusion to that callback instead.

09 / Frequently asked questions

Exclude current post plugin questions

Does Exclude current post need Elementor Pro?

Yes. The Query ID field belongs to Elementor Pro query widgets such as Posts and Loop Grid. Without Elementor Pro the module cannot be enabled.

Which widgets support the Query ID?

Elementor Pro widgets with a Query section that offers a Query ID, such as Posts and Loop Grid. It was verified with the Posts widget on a published single post.

Does it change archive or category pages?

No. It only acts when a single post, page or custom post type entry is being viewed.

Will it remove posts I already excluded?

No. Your existing exclusions are kept and the current post is added to them.

Does it add a widget or slow down the page?

It adds no widget, script or stylesheet. It adjusts the query of the tagged widget only.

10 / Annual All Access subscription

Get exclude current post with Complementor

This module is included with all 1007 current Complementor solutions. Choose your production website allowance; every plan includes the same modules.

All Access · 1 site

One website

$29USD / year
  • All 1007 current modules
  • Plugin downloads and updates for one year
  • New releases during the paid term
  • Product support
Choose 1 site ↗

Renews at $29 USD each year.

All Access · 5 sites

A few websites

$49USD / year
  • All 1007 current modules
  • Plugin downloads and updates for one year
  • New releases during the paid term
  • Product support
Choose 5 sites ↗

Renews at $49 USD each year.

All Access · 25 sites

More websites

$99USD / year
  • All 1007 current modules
  • Plugin downloads and updates for one year
  • New releases during the paid term
  • Product support
Choose 25 sites ↗

Renews at $99 USD each year.

Applicable taxes extra. Annual subscriptions renew automatically unless canceled in your customer account. Elementor Pro is required for Exclude current post. Read the terms and 14-day technical-issue refund policy.