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/
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/
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.
Cool - thanks for the tip. I'll give it a shot!
You must log in to post.