Dates in Posts Fixed
Posted by Tyler | Filed under tylerbutler.com
Just made a minor fix to the site… I noticed that dates weren’t showing up for some posts. Took me about 5 minutes to figure out that the WordPress the_date() function had changed:
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()).
Quick and easy change…
Before: <?php the_date() ?>, <?php the_time() ?>
After: <?php the_time("F j, Y, g:i a") ?>