---
title: "How to Exclude Custom Post Types by Post Id in Elementor?"
url: https://theplusaddons.com/docs/exclude-custom-post-types-by-post-id-in-elementor/
date: 2023-08-25
modified: 2026-09-27
lang: en
author: "Aditya Sharma"
description: "Sometimes one or two specific posts shouldn't appear in a listing - a pinned announcement already shown elsewhere on the page, for instance. Dynamic Listing's Exclude Post(s) field removes exact..."
image: https://theplusaddons.com/wp-content/uploads/2023/08/How-to-Exclude-Custom-Post-Types-by-Post-Id-in-Elementor_-1024x536.jpg
word_count: 267
---

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

## 

- Dynamic Listing removes exact posts from the query by ID with the Exclude Post(s) field, while leaving the rest of the filters unchanged.
- The Plus Addons for Elementor Pro is required for Dynamic Listing, and the widget does not appear in the free plugin.
- Elementor (free) must be installed and active, and post IDs are entered under Content Source in Exclude Post(s) as comma-separated values for more than one ID.

Sometimes one or two specific posts shouldn't appear in a listing - a pinned announcement already shown elsewhere on the page, for instance.

Dynamic Listing's **Exclude Post(s)** field removes exact posts from the query by ID, without touching the rest of your filters.

For the full settings tour of the **Dynamic Listing** widget, see [Dynamic Listing Widget Settings Overview](https://theplusaddons.com/docs/dynamic-listing-widget-settings-overview/).

***Requirement - This widget is a part of The Plus Addons for Elementor Pro, make sure it's installed & activated to enjoy all its powers.***

[LIVE WIDGET LINK](https://theplusaddons.com/elementor-listing/dynamic-listing/?utm_source=tpae&utm_medium=docs&utm_campaign=text)

## Before You Start

- **Prerequisite:** [Elementor](https://wordpress.org/plugins/elementor/) (free) installed and active.- **Edition:** Dynamic Listing is a **Pro** widget - it needs The Plus Addons for Elementor Pro installed and its license activated. It will not appear in the free plugin.- **Widget to enable:** go to **The Plus Addons > Widgets**, search for **Dynamic Listing** and turn its toggle on.

## Steps

- Add the **Dynamic Listing** widget to the page.- Find the post ID(s) to exclude (visible in the WordPress admin post list, or in the post edit screen's URL as `post=123`).- Under **Content Source**, enter the ID(s) into **Exclude Post(s)**, comma-separated for more than one.

![Exclude Post(s) field with comma-separated post IDs](https://theplusaddons.com/wp-content/uploads/2026/09/dynamic-listing-exclude-posts.webp)

## Settings Overview

| Setting | What it does | Default |
| ------- | ------------ | ------- |
| Exclude Post(s) | Comma-separated post IDs to remove from the query. | (empty) |
| Include Post(s) | The opposite control - limits the query to only these IDs. | (empty) |

## Related Docs

- [How to Include Custom Post Types by Post Id in Elementor?](https://theplusaddons.com/docs/include-custom-post-types-by-post-id-in-elementor/)- [How to Order Custom Post Types by Date in Elementor?](https://theplusaddons.com/docs/order-custom-post-types-by-date-in-elementor/)

## Not verified

So you know exactly what has and has not been checked:

- Whether Exclude Post(s) and Include Post(s) can be combined at the same time (rather than one overriding the other) was not specifically tested.

## Frequently Asked Questions

**Q: Why are some custom post types still showing up after I exclude them by ID in Elementor?**
A: The Exclude Post(s) field only removes the exact post IDs you enter, so a mismatch in the ID is the usual reason something still appears. The Plus Addons for Elementor, The Plus Addons, Plus Addons for Elementor, POSIMYTH uses the Dynamic Listing widget’s query to filter those posts without changing your other filters. A practical check is to grab the ID from the WordPress admin post list or the post edit URL, where it appears as post=123.

**Q: What do I need before using Exclude Post(s) in Dynamic Listing?**
A: Elementor free has to be installed and active, and Dynamic Listing is a Pro widget that needs The Plus Addons for Elementor Pro with its license activated. The widget also has to be enabled under The Plus Addons &gt; Widgets before it will appear in Elementor. That matters because the exclusion control lives inside Dynamic Listing, not in Elementor itself, so the feature depends on the addon being active.

**Q: Can I exclude more than one custom post type item by ID at once?**
A: The Exclude Post(s) field accepts comma-separated post IDs, so multiple items can be removed in one query. That makes it useful when you want to hide a few pinned or already-shown posts without rebuilding the listing. The Plus Addons for Elementor, The Plus Addons, Plus Addons for Elementor, POSIMYTH keeps the rest of your filters intact, so only those exact IDs are removed.

**Q: What is the difference between Exclude Post(s) and Include Post(s) in Dynamic Listing?**
A: Exclude Post(s) removes specific IDs from the query, while Include Post(s) does the opposite and limits the query to only those IDs. That distinction matters when you want either a broad listing with a few items hidden or a tightly controlled list built from known posts. In both cases, the control is ID-based, so accuracy depends on using the right WordPress post IDs.

**Q: Is there another way to handle a pinned announcement that should not appear in a listing?**
A: The Exclude Post(s) field is built for exactly that kind of case: one or two specific posts that should stay out of a listing because they are already shown elsewhere on the page. Using IDs keeps the rest of the Dynamic Listing query unchanged, which is cleaner than trying to reshape every filter around one pinned item. That makes it a good fit for announcement-style content that needs manual control.

**Q: Can I combine Exclude Post(s) and Include Post(s) at the same time?**
A: That combination was not specifically tested on this page, so there is no verified guidance here on whether one overrides the other or whether they work together. The safe takeaway is that both controls operate on post IDs inside Dynamic Listing, but their interaction is still unverified. If you need predictable results, treat them as separate query controls rather than assuming they will stack cleanly.
