WordPress Fix – the_date() Function Returning Blank Value

Are you are using the_date() function in WordPress templates and getting a blank or empty value?

When more than one post is published on the same day, the_date() function displays only the date for the first post in the loop.

The right way to handle this is by using the the_time() function.

Try this:

<?php the_time('F j, Y'); ?> at <?php the_time('g:i a'); ?>