Re: Show exact date of post? (not freshness)
I suspect that this will work. Replace get_post_time()
or whatever it is with
global $post;
echo $post->post_time;
(Remember to have the <?php
… ?>
tags around it!) If you want different formatting on that, I think that $post->post_time
is a bit too much detail so you could instead have
global $post;
$lalaposttime = date( 'D M Y', strtotime( $post->post_id ) );
echo $lalaposttime;
You can change the way the date will appear by changing the first parameter (currently it’s ‘D M Y’) of the date()
function. A list of how you can format dates is here.