• Resolved doubledubs

    (@doubledubs)


    Right now under “Scheduled Entries” the list items say something like:

    “XYZ Post in 30 days”

    When I’d much rather it say:

    “XYZ Post in 30 days on Modnay, January 1”

    I looked at the code in the dashboard and honestly it’s much too complex for me. I’ve also looked in the codex without luck. Can anyone tell me how to add that “on DAY, MMMM DD” code?

    or just “on MMM DD” would be fine if I can’t get the day of week.

    Thanks!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter doubledubs

    (@doubledubs)

    The existing code is the following:


    <h3><?php _e('Scheduled Entries:') ?></h3>
    <ul>
    <?php
    foreach ($scheduled as $post) {
    if ($post->post_title == '')
    $post->post_title = sprintf(__('Post #%s'), $post->ID);
    echo "<li>" . sprintf(__('%1$s in %2$s'), "<a href='post.php?action=edit&amp;post=$post->ID' title='" . __('Edit this post') . "'>$post->post_title</a>", human_time_diff( current_time('timestamp', 1), strtotime($post->post_date_gmt. ' GMT') )) . "</li>";
    }
    ?>
    </ul>

    Simply adding the below does not seem to help. I’ve tried adding it to several places before the </li>


    <?php the_date('Y-m-d', '<h2>', '</h2>'); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dates on Admin Dashboard’ is closed to new replies.