Title: Exclude Category
Last modified: September 10, 2019

---

# Exclude Category

 *  Resolved [Clarus Dignus](https://wordpress.org/support/users/clarus-dignus/)
 * (@clarus-dignus)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/exclude-category-60/)
 * The documentation confirms I can exclude by post ID and current post but what
   about exclude by category?
 * Let’s say I have a 100 categories and want to list the posts for all but 1 category.
   It’s easier to exclude 1 category than type out the 99 I want to include.
 * See [https://wordpress.org/plugins/list-category-posts/](https://wordpress.org/plugins/list-category-posts/)

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

 *  Plugin Author [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * (@billerickson)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/exclude-category-60/#post-11919762)
 * Yes, you can use a taxonomy query to exclude posts from a certain category.
 * The following shortcode will list posts from every category except “sample”:
 * [display-posts taxonomy=”category” tax_term=”sample” tax_operator=”NOT IN”]
 * More information: [https://displayposts.com/2019/01/07/taxonomy-queries/](https://displayposts.com/2019/01/07/taxonomy-queries/)
 *  Thread Starter [Clarus Dignus](https://wordpress.org/support/users/clarus-dignus/)
 * (@clarus-dignus)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/exclude-category-60/#post-11919861)
 * Excellent. Thanks for the shortcode example.
 *  [lucadeluchis](https://wordpress.org/support/users/lucadeluchis/)
 * (@lucadeluchis)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/exclude-category-60/#post-12153069)
 * Hi, I’d like to do the same but with tags, I tried
    [display-posts tag=”1” tag_term
   =”2” tag_operator=”NOT IN”] Probably are not the correct codes… Any help please?
   🙂
 *  [lucadeluchis](https://wordpress.org/support/users/lucadeluchis/)
 * (@lucadeluchis)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/exclude-category-60/#post-12157582)
 * Ok found this that solved everything! 🙂
 * [https://displayposts.com/2019/01/03/exclude-posts-already-displayed/](https://displayposts.com/2019/01/03/exclude-posts-already-displayed/)
 * If needed…use this plugin: [https://wordpress.org/plugins/code-snippets/](https://wordpress.org/plugins/code-snippets/)

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

The topic ‘Exclude Category’ is closed to new replies.

 * ![](https://ps.w.org/display-posts-shortcode/assets/icon-256x256.jpg?rev=2940963)
 * [Display Posts - Easy lists, grids, navigation, and more](https://wordpress.org/plugins/display-posts-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/display-posts-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/display-posts-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/display-posts-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/display-posts-shortcode/reviews/)

## Tags

 * [category exclude](https://wordpress.org/support/topic-tag/category-exclude/)

 * 4 replies
 * 1 participant
 * Last reply from: [lucadeluchis](https://wordpress.org/support/users/lucadeluchis/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/exclude-category-60/#post-12157582)
 * Status: resolved