Title: [Plugin: Display Posts Shortcode] show posts from multiple categories?
Last modified: August 20, 2016

---

# [Plugin: Display Posts Shortcode] show posts from multiple categories?

 *  Resolved [jmichaelk](https://wordpress.org/support/users/jmichaelk/)
 * (@jmichaelk)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-display-posts-shortcode-show-posts-from-multiple-categories/)
 * Is it possible to summon posts from two categories, instead of just one? If so,
   how would I add the second category into the standard tag? I see a response from
   you about adding multiple tags with and/or operators. Will the same apply to 
   categories? For example, “NameOfCategory1+NameOfCategory2”? Thank you.
 * [http://wordpress.org/extend/plugins/display-posts-shortcode/](http://wordpress.org/extend/plugins/display-posts-shortcode/)

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

 *  Plugin Author [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * (@billerickson)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-display-posts-shortcode-show-posts-from-multiple-categories/#post-2364929)
 * Yes, using + should show posts that are in both those categories (AND operator).
   Using a comma will show posts that are in either of those categories (OR operator).
   More info here: [http://codex.wordpress.org/Class_Reference/WP_Query#Category_Parameters](http://codex.wordpress.org/Class_Reference/WP_Query#Category_Parameters)
 *  Thread Starter [jmichaelk](https://wordpress.org/support/users/jmichaelk/)
 * (@jmichaelk)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-display-posts-shortcode-show-posts-from-multiple-categories/#post-2364989)
 * thanks!
 *  [FaffeF](https://wordpress.org/support/users/faffef/)
 * (@faffef)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-display-posts-shortcode-show-posts-from-multiple-categories/#post-2365066)
 * Is it possible to get this to work with tax_term as well?
 *  Plugin Author [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * (@billerickson)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-display-posts-shortcode-show-posts-from-multiple-categories/#post-2365068)
 * I’ve just pushed a small update (didn’t change version number) that adds support
   for multiple taxonomy terms and the taxonomy operator.
 * `[display-posts taxonomy="post_tag" tax_term="austin, lake"]`
    This will show
   posts tagged austin OR lake (if no operator is applied, it uses tax_operator=”
   IN”)
 * `[display-posts taxonomy="post_tag" tax_term="austin, lake" tax_operator="AND"]`
   
   That will show posts tagged Austin AND lake
 * `[display-posts taxonomy="post_tag" tax_term="austin, lake" tax_operator="NOT
   IN"]`
    This will show posts not tagged austin or lake.
 *  [FaffeF](https://wordpress.org/support/users/faffef/)
 * (@faffef)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-display-posts-shortcode-show-posts-from-multiple-categories/#post-2365069)
 * Thanks!
 * Why not update the version number? Now I must update manually to get the changes.
   Isn’t it kind of defeating the purpose of version numbers to release changes 
   without changing the numbers?
 *  Plugin Author [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * (@billerickson)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-display-posts-shortcode-show-posts-from-multiple-categories/#post-2365070)
 * Because this is such a minor change (and specifically designed for you), there’s
   no reason to prompt the many other people to update.
 *  [ryansmithsd](https://wordpress.org/support/users/ryansmithsd/)
 * (@ryansmithsd)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-display-posts-shortcode-show-posts-from-multiple-categories/#post-2365137)
 * in the same idea as this- what about doing this for custom post -types like Projects
   or Portfolio– looked in the forum first but didnt see anything. Thank you such
   an amazing project!!!
 *  Plugin Author [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * (@billerickson)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-display-posts-shortcode-show-posts-from-multiple-categories/#post-2365138)
 * Post type is one of the default parameters of the shortcode. So if your post 
   type is called “portfolio”,
 * [display-posts post_type=”portfolio”]
 * will show the 10 most recent posts in that post type

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

The topic ‘[Plugin: Display Posts Shortcode] show posts from multiple categories?’
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/)

 * 8 replies
 * 4 participants
 * Last reply from: [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-display-posts-shortcode-show-posts-from-multiple-categories/#post-2365138)
 * Status: resolved