Date is dropped on scheduled posts? (3 posts)

  1. egoldnews1
    Posted 6 years ago #

    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>'); ?>

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

  2. MichaelH
    Posted 6 years ago #

    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.

  3. egoldnews1
    Posted 6 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic