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

  1. JJ
    Posted 2 years 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...


  2. Bill Erickson
    Plugin Author

    Posted 2 years 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
    Posted 2 years 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

  • Display Posts Shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic