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:
More Related Posts
- [2016/09/22] WordPress Uploaded Images are Blank
- [2016/06/12] Can’t See or Edit Content of Pos...
- [2016/06/04] Get Image Src for All Images on a Post...
- [2016/06/02] How to Display Most Commented Posts in...
- [2016/05/24] Get Post Permalink on WordPress
- [2016/05/24] Get Post Creation Date of a WordPress ...
- [2016/05/14] How to Display Recent Posts in WordPre...
- [2016/05/24] How to Manually Update WordPress