• I originally posted this awhile back, didn’t receive any replies, and the post was closed (I don’t recall closing it but maybe I did). Anyway, I just realized I’m still in need of an answer to this. Please help.

    This may seem like an odd question but is it possible, and if so how do I do this, to show a list of drafts in a separate post or page on my blog?

    I realized it’d be nice for visitors to see what articles are in the pipe to come out soon. Ideally I’d love for WP to be able to automatically take the titles of the posts I mark as a Draft and then insert that into a separate post or page. If it could automatically update itself the better.

    I know I can manually make a blog post or page and then manually enter the subjects or expected titles of what I hope to work on down the road.

    But, if I could show actual titles of Drafts then visitors can see what is being written right now. I think of it like the queue feature of Netflix. You log in and see your queue and know what DVDs will be coming your way soon.

    I write about different games on my blog (CWF Game Cast and War at Sea.net) and my visitors are passionate supports of certain games. Some love Warhammer 40k while others come just for Warmachine. I know they get updated (via e-mail, RSS, etc) when an article goes live. But, if they know it is in a draft they will know it is coming soon. That saves them the uncertainty of knowing if or when their game will be discussed.

    Oddly enough I get a lot of communication from people asking when is the next time I will discuss a certain game. If they could look on my blog and see the list of drafts they’d know at a glance.

    Is this possible?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Could you use get_posts along with post_status in a page template? Eg:

    <ul>
    <?php
    $args = array(
    	'post_type' => 'post',
    	'numberposts' => 0,
    	'post_status' =>draft
    	);
    $my_drafts = get_posts($args);
    foreach( $my_drafts as $post ) : ?>
    <li><?php the_title(); ?></li>
     <?php endforeach; ?>
     </ul>
    Thread Starter arickrol

    (@arickrol)

    I did a quick look at that and it seems like it only works on published posts. But, maybe it works on saved but not yet published posts? Not sure on that.

    If it could be used to show drafts or other not yet published posts (but ones that have been written either completely or partially) that would be quite nice.

    Or even if it could show all posts in a certain category/tag no matter their status (published/unpublished) that would be great. In this case I could just tag or categorize all unpublished posts as Drafts or something.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show List of Drafts in Blog Post or Page? Redux’ is closed to new replies.