How to Show Last Modified Date instead of Post Published Date in WordPress

Sometimes, you show on blog last updated date and you need this fix on your website. So we are giving solution for “How to Show Last Modified Date instead of Post Published Date in WordPress

Show Last Modified Date without Plugin

Step 1: Open file manager

Simply open file manager or open website child theme folder through FTP. It is very easy and you can do without any tech help.

Step 2: Paste Code

Open Function php file and paste code as below mention.
Update Date
function show_last_modified_date( $content ) {
$original_time = get_the_time(‘U’);
$modified_time = get_the_modified_time(‘U’);
if ($modified_time >= $original_time + 86400) {
$updated_time = get_the_modified_time(‘h:i a’);
$updated_day = get_the_modified_time(‘F jS, Y’);
$modified_content .= ‘Updated on: ‘. $updated_day . ‘
$modified_content .= $content;
return $modified_content;
add_filter( ‘the_content’, ‘show_last_modified_date’ );

Step 3: Save and Refresh

Now, save function php file and refresh your page.

Display Modified Date with Plugin

You can use plugin for this change if you don’t want to insert code.

WP Last Modified Info by Sayan Datta. This plugin has trusted by 10,000 people.

Live Product tour WP Last Modified Info Plugin.

2nd Plugin for TimeStamp

Yes, you can use another good and trusted timestamp plugin i.e. Last Modified Timestamp by Evan. This plugin has used by more than 10,000 blogger.

You can view other How To do


★ Why we should use modified date instead of post date?

Answer: When visitor visit on any blog post, their first attention goes on date. Its because Visitor want to view this post is latest or old. Ultimately, everyone want to read latest information from web.

★ Why we should simply code instead of plugin for modified date?

Answer: You should avoid any extra plugin. Every plugin use extra resource and if you can do without plugin, you must try without plugin.

★ What should criteria for selection of plugin for post update?

Answer: You should check plugin author, history, feedback and update log. Whether plugin is updating regularly or not.