WordPress.org

Support

Support » How-To and Troubleshooting » Make Drafts Display in a List

Make Drafts Display in a List

  • How would I go about making the drafts, listed at the top of the Write screen, display in a list, i.e.:

    * Draft #1
    * Draft #2
    * Draft #3

    I keep a lot of drafts, and when they’re just separated by a comma, it’s sometimes a pain to find what I’m looking for.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I would also appreciate an answer to this question. 🙂

    edit this in /wp-admin/edit.php

    if ($drafts || $other_drafts) {
    ?>
    <div class="wrap">
    <?php if ($drafts) { ?>
    <p><strong><?php _e('Your Drafts:') ?></strong>
    <?php
    $i = 0;
    foreach ($drafts as $draft) {
    if (0 != $i)
    echo ', ';
    $draft->post_title = stripslashes($draft->post_title);
    if ($draft->post_title == '')
    $draft->post_title = sprintf(__('Post #%s'), $draft->ID);
    echo "<a href='post.php?action=edit&amp;post=$draft->ID' title='" . __('Edit this draft') . "'>$draft->post_title</a>";
    ++$i;
    }

    good luck.

    Thanks, what are the appropriate changes to the code? 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Make Drafts Display in a List’ is closed to new replies.
Skip to toolbar