Title: Exclude post types
Last modified: June 19, 2020

---

# Exclude post types

 *  Resolved [ashf](https://wordpress.org/support/users/ashf/)
 * (@ashf)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/exclude-post-types-4/)
 * How do I exclude post types or include only certain one?

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

 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/exclude-post-types-4/#post-13016233)
 * You can choose what post types to include under Settings > Posts list
 * [https://ps.w.org/top-10/assets/screenshot-3.png?rev=1770116](https://ps.w.org/top-10/assets/screenshot-3.png?rev=1770116)
 *  Thread Starter [ashf](https://wordpress.org/support/users/ashf/)
 * (@ashf)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/exclude-post-types-4/#post-13016429)
 * Thank you.
    I’d like to exclude certain post types from counting but displaying.
   Is it possible? Also metabox on the each post in those post type is unnessesary.
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/exclude-post-types-4/#post-13016744)
 * Could you clarify what you mean on not counting but displaying?
 *  Thread Starter [ashf](https://wordpress.org/support/users/ashf/)
 * (@ashf)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/exclude-post-types-4/#post-13016752)
 * I thought “Settings > Posts list” just exclude post types from being shown them
   on the popular post list.
    Does it exclude them from being recorded(counted) 
   in the database?
    -  This reply was modified 5 years, 11 months ago by [ashf](https://wordpress.org/support/users/ashf/).
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/exclude-post-types-4/#post-13020697)
 * You’re right on that – in order to stop the tracking you could potentially `remove_action('
   wp_enqueue_scripts', 'tptn_enqueue_scripts', 99 );` by first checking if `$post-
   >post_type != 'somename'`
 * [https://github.com/WebberZone/top-10/blob/master/includes/tracker.php#L96](https://github.com/WebberZone/top-10/blob/master/includes/tracker.php#L96)
 *  Thread Starter [ashf](https://wordpress.org/support/users/ashf/)
 * (@ashf)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/exclude-post-types-4/#post-13026414)
 * I see, would be nice if you could add a filter hook for it.
    Also a filter to
   switch metabox visibility for each post type would be nice.
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/exclude-post-types-4/#post-13029069)
 * [@ashf](https://wordpress.org/support/users/ashf/),
 * I’m going to implement this in a future version
 *  Thread Starter [ashf](https://wordpress.org/support/users/ashf/)
 * (@ashf)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/exclude-post-types-4/#post-13035919)
 * thank you
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/exclude-post-types-4/#post-13060796)
 * I’ve filed this for a future version: [https://github.com/WebberZone/top-10/issues/104](https://github.com/WebberZone/top-10/issues/104)
 * This is a few months away given how I rotate various plugin releases so will 
   mark this resolved for now and the forum only tracks posts for a 2 month period.

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

The topic ‘Exclude post types’ is closed to new replies.

 * ![](https://ps.w.org/top-10/assets/icon-256x256.png?rev=2986432)
 * [WebberZone Top 10 — Popular Posts](https://wordpress.org/plugins/top-10/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/top-10/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/top-10/)
 * [Active Topics](https://wordpress.org/support/plugin/top-10/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/top-10/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/top-10/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Ajay](https://wordpress.org/support/users/ajay/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/exclude-post-types-4/#post-13060796)
 * Status: resolved