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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    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

    thanks!

    Is it possible to get this to work with tax_term as well?

    Plugin Author Bill Erickson

    (@billerickson)

    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.

    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

    (@billerickson)

    Because this is such a minor change (and specifically designed for you), there’s no reason to prompt the many other people to update.

    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

    (@billerickson)

    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.