This question already has an answer here:

if I have more than one posts that publish in the same day, the_date() function does not print publish date.

How can I fix it?


I solve this by: "the_time(get_option('date_format'));"

marked as duplicate by gmazzap, kaiser, fuxia Dec 3 '13 at 7:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • can you also add the relevant codes along with the question? – Maruti Mohanty Dec 3 '13 at 6:22

This is explained on the according Codex page:

echo get_the_date();

For printing date of multiple posts you can use get_the_date fx

<?php echo get_the_date() ?>

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 get_the_date (since 3.0) with a date-specific format string.- WordPress Codex

Not the answer you're looking for? Browse other questions tagged or ask your own question.