WordPress.org

Support

Support » How-To and Troubleshooting » Date is dropped on scheduled posts?

Date is dropped on scheduled posts?

  • Hi all,
    I’m using v. 2.8.4, and I’ve got a problem with scheduled posts. Whenever they post on my blog, they don’t include the date. If I select “publish” instead of schedule, the date shows up. Not sure what the problem is. The only PHP code I find is this:

    [code]<div class=”mdate”>
    <?php the_date(”,'<h2>’,'</h2>’); ?>
    </div>[code]

    That appears fine to me. If anyone has any guidance, I’d greatly appreciate it! Thanks! PS Blog is at egold.com

Viewing 2 replies - 1 through 2 (of 2 total)
  • Might use template tag, the_time(), instead.

    SPECIAL NOTE: When there are multiple posts on a page published under the SAME DAY, the_date() only displays the date for the first post (that is, the first instance of the_date()). To repeat the date for posts published under the same day, you should use the Template Tag the_time() with a date-specific format string.

    Thanks Michael! That worked perfectly. I used:
    <div><?php the_time(‘F j, Y’); ?></div>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Date is dropped on scheduled posts?’ is closed to new replies.