Show date on all posts in a loop – WordPress

Using WordPress, if a loop in one of your template files is set to call in (get) more than one post… you will notice that if the posts were created on the same day, only the last (newest) post will show the date timestamp. All older posts called by that same loop do not show the date.

To make all posts show the date, even if one or more, or all even, were published on the same day… do the following:

Instead of using
the_date();

Use the following:
the_time();

If you leave the brackets blank in “the_time” function, you will notice that you do not get a date stamp, but a time stamp. To get the date to show instead of the time inside “the_time();” function… use the below:

the_time(‘F j, Y’);

You can find the_date(); in your template folder in one or many of the .php files. Simply replace where desired.