Post last modified

Wpsnipp – Want to show the last posts you updated in WordPress? This shows the posts you went back and updated or modified, which is different than your recent posts. Adding this PHP code to your wordpress theme will display the last modified date of your post.



Posted on <?php the_time('F jS, Y') ?>
$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 ". ";

Leave a comment