How to get date for each post?

Posted by Prem Tiwari | Updated on

I ran into the same problem several times, following changes worked for me in the past:

Instead of the_date(), use get_the_date(). The only thing to be aware of, is that values returned by get_the_date() have to be echoed.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers