Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

This code is being used to generate the date of a post in wordpress:

<span class="the_date">Posted: <?php echo get_the_time('F d, Y'); ?></span>

However it is not resutning the date, it is returning the text instead:

enter image description here

How can I fix this issue?

share|improve this question
This is peculiar... How is the loop for there posts set up? – Rarst Sep 21 '13 at 14:22

1 Answer 1

If you want to display the time to the user you should use the_time(); template tag instead.

share|improve this answer
Please explain why that would solve problem. the_time() is just a wrapper for get_the_time(), so you have to be very creative. :) – toscho Sep 20 '13 at 21:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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