Title: [Plugin: TPG Get Posts] Exclude category
Last modified: August 20, 2016

---

# [Plugin: TPG Get Posts] Exclude category

 *  Resolved [Vakantie Ameland](https://wordpress.org/support/users/christianebuddy/)
 * (@christianebuddy)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-tpg-get-posts-exclude-category/)
 * Is it possible to exclude a certain category / categories in the shortcode?
 * [http://wordpress.org/extend/plugins/tpg-get-posts/](http://wordpress.org/extend/plugins/tpg-get-posts/)

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

 *  Plugin Author [Criss Swaim](https://wordpress.org/support/users/cswaim/)
 * (@cswaim)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-tpg-get-posts-exclude-category/#post-2344006)
 * I have not tried this, but according to the parameter doc
    `http://codex.wordpress.
   org/Class_Reference/WP_Query#Parameters` the author and category (which are numbers)
   can be excluded by entering negative numbers.
 * Try something like category=-6 to exclude the category. And, of course, please
   post the results here so others know the results.
 *  Thread Starter [Vakantie Ameland](https://wordpress.org/support/users/christianebuddy/)
 * (@christianebuddy)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-tpg-get-posts-exclude-category/#post-2344169)
 * Tried this e.g and it works! Tnx for the tip
 * > [tpg_get_posts numberposts=15 orderby=”date” show_entire=”true” category=-xx]

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

The topic ‘[Plugin: TPG Get Posts] Exclude category’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/tpg-get-posts_dfefe0.svg)
 * [TPG Get Posts](https://wordpress.org/plugins/tpg-get-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tpg-get-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tpg-get-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/tpg-get-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tpg-get-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tpg-get-posts/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Vakantie Ameland](https://wordpress.org/support/users/christianebuddy/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-tpg-get-posts-exclude-category/#post-2344169)
 * Status: resolved