WordPress.org

Ready to get started?Download WordPress

Forums

Display Posts Shortcode
[resolved] post_status (2 posts)

  1. William Haynes
    Member
    Posted 1 year ago #

    Would you mind adding support for post_status to your plugin?

    My particular problem is that private posts are only listed for me, and I would like other logged in user to be able to see them too.

    I'd like to be able to do this:

    <p>[display-posts category="kittens" post_status="publish,private" posts_per_page="-1" order="ASC" orderby="title"]</p>

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

  2. Bill Erickson
    Member
    Plugin Author

    Posted 1 year ago #

    I've added support for post statuses: https://github.com/billerickson/display-posts-shortcode/commit/967dc76c19c8e853233a38569f9bea9c71236edf

    Usage: [display-posts post_status="publish"] [display-posts post_status="publish, private"]

    It will be in the next release, which should be available shortly. Or you can download it immediately from Github.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic