Wordpress users have thousands of themes to choose from. We hunt out the best of the best free and premium themes. You will find best of the best 2 columns, 3 columns, adsense ready, widget ready,
XHTML validated themes. Best themes for Wordpress powered blogs. Download quality and professionally designed Wordpress templates for free at BestWpThemez.com.
In many cases you may want to display updated date of your post meta data rather than showing just the original published posting date. For that you need to edit the single.php file of your theme. Before edit the single.php take a backup of this file.
Now, find the Code:
Posted on: <?php the_time(‘l, F jS, Y’) ?>
Replace with:
Posted on <?php the_time(‘F jS, Y’) ?>
<?php $u_time = get_the_time(‘U’);
$u_modified_time = get_the_modified_time(‘U’);
if ($u_modified_time != $u_time) {
echo “and last modified on “;
the_modified_time(‘F jS, Y’);
echo “. “; } ?>
Now your posts will shows the last modified date immediately after the original published date rather than just showing the original post date.
That’s it!
Thanks,
Shane G.
Popularity: 1%
This entry was posted
on Wednesday, September 16th, 2009 at 5:19 pm and is filed under WordPress KB .
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.