egoldnews1
Member
Posted 2 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>'); ?>
</div>[code]
That appears fine to me. If anyone has any guidance, I'd greatly appreciate it! Thanks! PS Blog is at egold.com
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.
egoldnews1
Member
Posted 2 years ago #
Thanks Michael! That worked perfectly. I used:
<div><?php the_time('F j, Y'); ?></div>