Get Post Modification Date of a WordPress Post

Get modified date of a post by post ID:

echo 'Post last modified on '.get_post_modified_time('l, F jS, Y', true, $post->ID, false);

Example output:

Post last modified on Monday, April 15th, 2016

To show also the time, use this:

echo 'Post last modified on '.get_post_modified_time('l, F jS, Y \a\t g:i a', true, $post->ID, false);

Example output:

Post last modified on Monday, April 15th, 2016 at 11:53 am

Reference:

Function Reference/get post modified time

Get modified date inside the loop:

the_modified_date();

Reference:

Function Reference/the modified date

Here is a WordPress plugin that can do that:

Last Modified Timestamp

wordpress-plugin-last-modified-timestamp

More Related Posts