How to Exclude Custom Post Types by Post Id in Elementor?

Key Takeaways

  • Dynamic Listing widget from The Plus Addons for Elementor allows exclusion of posts from custom post types by post id.
  • Users can exclude multiple post ids in the Exclude Post(s) field, separated by a comma.
  • Custom post types can be created using the free Advanced Custom Fields (ACF) plugin.
Table Of Content

Do you want to exclude some posts from the list of custom post types on your Elementor website? There may be times when you want to hide some posts from your custom post type, for instance, you may want to hide some posts from your home page.

With the Dynamic Listing widget from The Plus Addons for Elementor, you can easily exclude posts from custom post types by post id. 

To check the complete feature overview documentation of The Plus Addons for Elementor Dynamic Listing widget, click here.

Requirement  – This widget is a part of The Plus Addons for Elementor, make sure its installed & activated to enjoy all its powers.

To do this, make sure you have created at least one custom post type, you can use the free Advanced Custom Fields (ACF) to create a custom post type.

For instance, we have created a custom post type called Books.

Once you’ve created your custom post type, follow the steps – 

1. Add the Dynamic Listing widget to a page or template. 

2. Select Normal Page or Single Page Related Posts from the Post Listing Types dropdown. 

3. Then select your custom post type from the Post Type dropdown, 

4. After that select the appropriate style and layout.

3. Then go to the Content Source tab, and in the Exclude Post(s) field, you can add the ids of the posts you want to exclude.

Note: You can add multiple ids separated by a comma(,).

Note: You can also exclude posts by selecting a custom taxonomy from the Taxonomies dropdown and then adding a taxonomy slug in the Taxonomies Slug field.

To find the post id from the Dashboard, go to your custom post type.

Hover over the post you want to get the id of, and you’ll see the id at the bottom of the browser, it will show the post edit URL with its id. The number after ‘post=’ is the post id.

Tpae dynamic listing filter cpt books post id dispaly how to exclude custom post types by post id in elementor? From the plus addons for elementor

Now only that specific post will not show.

Similarly, you can include posts by ID from the Include Post(s) field.

Also, read How to Filter Custom Post Types by Taxonomy in Elementor.

About the Author

Photo of Aditya Sharma CMO of The Plus Addons for Elementor
CMO · The Plus Addons for Elementor · 10 years experience

He has spent years in the WordPress ecosystem building, breaking, and optimizing sites until they actually perform. He works at the intersection of speed, growth, and usability, helping creators ship websites that load fast and convert. An active WordPress community contributor sharing through tools, tutorials, and direct collaboration. Tested practice, not theory.

WordPressElementorn8nAIClaudeAutomationServer
Get Instant Answers to all your questions about The Plus Addons for Elementor, trained on 1000+ Docs and Videos

Related Frequently Asked Questions

What should I do if the Dynamic Listing widget doesn't exclude posts as expected?

If the Dynamic Listing widget isn't excluding posts, double-check that you've entered the correct post IDs in the Exclude Post(s) field. Ensure that the IDs are separated by commas if you're excluding multiple posts. A common mistake is to forget this formatting, which can lead to all posts being displayed instead of the intended exclusions.

What are the best practices for excluding posts in Elementor?

When excluding posts in Elementor using the Dynamic Listing widget, it's best to keep your exclusions organized by using clear post IDs. Always verify the IDs by hovering over the post in your Dashboard to ensure accuracy. This practice helps prevent errors and ensures that only the desired posts are hidden from view.

How do I find the post ID for exclusion in Elementor?

To find the post ID for exclusion, navigate to your custom post type in the Dashboard. Hover over the post you want to exclude, and the post edit URL will display the ID at the bottom of your browser. The number following 'post=' is the ID you need to enter in the Exclude Post(s) field.

Last reviewed: April 11, 2026