Title: Include and Exclude posts
Last modified: January 14, 2019

---

# Include and Exclude posts

 *  [Lars Eriksson](https://wordpress.org/support/users/lars-eriksson/)
 * (@lars-eriksson)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/include-and-exclude-posts-2/)
 * I want for exemple posts with categories “1840”, “1850”, “1860” but only posts
   which also have category “New York”, not all post. Is it possible to do what?
   
   Can I use both “include” and “exclude” (all categories except “New York”) in 
   the same line?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Finclude-and-exclude-posts-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Guido](https://wordpress.org/support/users/guido07111975/)
 * (@guido07111975)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/include-and-exclude-posts-2/#post-11094943)
 * Hi Lars,
 * I did not include the “exclude” attribute for posts because it’s already being
   used for categories. But you can use “include” and “exclude” in the same shortcode,
   but it will apply to categories.
 * Guido

Viewing 1 replies (of 1 total)

The topic ‘Include and Exclude posts’ is closed to new replies.

 * ![](https://ps.w.org/very-simple-knowledge-base/assets/icon-256x256.png?rev=1415756)
 * [VS Knowledge Base](https://wordpress.org/plugins/very-simple-knowledge-base/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/very-simple-knowledge-base/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/very-simple-knowledge-base/)
 * [Active Topics](https://wordpress.org/support/plugin/very-simple-knowledge-base/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/very-simple-knowledge-base/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/very-simple-knowledge-base/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Guido](https://wordpress.org/support/users/guido07111975/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/include-and-exclude-posts-2/#post-11094943)
 * Status: not resolved