Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

thanks

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

share|improve this question

marked as duplicate by G. M., kaiser, toscho 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

2 Answers 2

This is explained on the according Codex page:

echo get_the_date();
share|improve this answer

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

share|improve this answer

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