WordPress.org

Ready to get started?Download WordPress

Forums

Display Posts Shortcode
[resolved] parameter for show posts of page's category? (3 posts)

  1. JJ
    Member
    Posted 1 year ago #

    Is there a parameter or way to show only the list of posts from the current category of the page? To do this dynamically...

    http://wordpress.org/extend/plugins/display-posts-shortcode/

  2. Bill Erickson
    Member
    Plugin Author

    Posted 1 year ago #

    No, this isn't a feature, but if you're a developer you can extend the plugin to do this. The 'display_posts_shortcode_args' filter passes the query args AND the original shortcode attributes. So just create an attribute not already in use (ex: [display-posts in_same_cat="true"] ), then write a filter that modifies the query based on that.

  3. JJ
    Member
    Posted 1 year ago #

    Cool - thanks for the tip. I'll give it a shot!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic