If you’ve ever created a custom query or loop you might have run into this really simple, but annoying problem. Everything shows up perfectly, except that when you have two posts published on the same day the latter post will not show the date.

Luckily the fix is very simple. Change your date output e.g.

<?php the_date('j M Y');?>

to the WordPress time function e.g.

<?php the_time('j M Y');?>

Also, don’t forget all of the options available for modifying the output : Codex : Formatting the Date and Time

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Looking for something?

Use the form below to search the site:


Still not finding what you're looking for? Drop us a note so we can take care of it!

Archives

All entries, chronologically...