Title: Exclude Certain Post IDs
Last modified: October 23, 2017

---

# Exclude Certain Post IDs

 *  Resolved [markva](https://wordpress.org/support/users/markva/)
 * (@markva)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/exclude-certain-post-ids/)
 * Hello,
 * Referrring to:
    “The first value you pass in is the post type that you want. 
   If you want to get every post types, just use ‘both’. It also supports PHP array:
   example array(‘post’, ‘page’).”
 * Is it possible to exclude certain post ids from the the array, for example
    get_most_viewed(‘
   post’, 10); excluding the posts with id 5, 12 ?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/exclude-certain-post-ids/#post-9611944)
 * Sorry that is not possible.

Viewing 1 replies (of 1 total)

The topic ‘Exclude Certain Post IDs’ is closed to new replies.

 * ![](https://ps.w.org/wp-postviews/assets/icon.svg?rev=978002)
 * [WP-PostViews](https://wordpress.org/plugins/wp-postviews/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-postviews/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-postviews/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-postviews/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-postviews/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-postviews/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/exclude-certain-post-ids/#post-9611944)
 * Status: resolved