Support » Themes and Templates » 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.