Title: Exclude Custom Post Type from Posts &amp; Comments Widgets
Last modified: August 21, 2016

---

# Exclude Custom Post Type from Posts & Comments Widgets

 *  [Spudnic](https://wordpress.org/support/users/spudnic072/)
 * (@spudnic072)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/exclude-custom-post-type-from-posts-comments-widgets/)
 * I have started dabbleing in creating a plugin to help handle support tickets 
   that are created on my site and to accomplish this I have decided to use a custom
   post type i am calling ‘ban_appeal’.
 * I have two questions:
 * 1) When I uninstall / deactivate the plugin, does wordpress delete the posts 
   of that custom type? Or do they sit there in the DB until they are specifically
   deleted?
 * 2) How can i exclude these posts of the type ‘ban_appeal’ from showing up in 
   widgets that get the latest blog posts? and from widgets that get the latest 
   comments from posts? I want dicussions on these posts to be private between staff
   and the specific user who created the ticket, so having these posts and comments
   listed all over the place by widgets is undersierable.
 * Thanks!

The topic ‘Exclude Custom Post Type from Posts & Comments Widgets’ is closed to 
new replies.

## Tags

 * [Comments](https://wordpress.org/support/topic-tag/comments/)
 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [post](https://wordpress.org/support/topic-tag/post/)
 * [wigets](https://wordpress.org/support/topic-tag/wigets/)

 * 0 replies
 * 1 participant
 * Last reply from: [Spudnic](https://wordpress.org/support/users/spudnic072/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/exclude-custom-post-type-from-posts-comments-widgets/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
