Title: Exclude / include posts by post type, id etc.
Last modified: April 18, 2020

---

# Exclude / include posts by post type, id etc.

 *  Resolved [menathor](https://wordpress.org/support/users/menathor/)
 * (@menathor)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/exclude-include-posts-by-post-type-id-etc/)
 * Hi guys,
 * Would it be possible to add filters to include and/or exclude posts by post type,
   post ID etc?
 * I have a site with hundreds of thousands of posts from bbPress, events plugins
   etc. As well as some custom post types containing sensitive data. We’d like to
   be able to exclude these posts from the sync to keep the size down and so the
   developer who has access to the staging site can’t see these posts.
 * Also, the production site will continue to get new posts of these types during
   development and by excluding them, maybe we can selectively sync back changes
   without needing to import any new posts first.
 * Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/exclude-include-posts-by-post-type-id-etc/#post-12697244)
 * Hi [@menathor](https://wordpress.org/support/users/menathor/)
 * at the moment this is not possible but might be a future feature.
 * < maybe we can selectively sync back changes without needing to import any new
   posts first.
 * This can lead to complications as the post id’s would likely change and dependencies
   between posts and postmeta table could break.
 * So I am sorry for not having a better answer for you.
 *  Thread Starter [menathor](https://wordpress.org/support/users/menathor/)
 * (@menathor)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/exclude-include-posts-by-post-type-id-etc/#post-12699269)
 * Hi Rene,
 * Thanks for the reply. Awesome, it would be great to see a post type filter as
   a future feature 🙂 I think a lot of people would find it useful.
 * And no problems re: the second point.
 * Cheers

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Exclude / include posts by post type, id etc.’ is closed to new replies.

 * ![](https://ps.w.org/wp-staging/assets/icon-256x256.png?rev=2972932)
 * [WP STAGING - WordPress Backup, Restore & Migration](https://wordpress.org/plugins/wp-staging/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-staging/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-staging/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-staging/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-staging/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-staging/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [menathor](https://wordpress.org/support/users/menathor/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/exclude-include-posts-by-post-type-id-etc/#post-12699269)
 * Status: resolved