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

Short cut method for u003cstrongu003eHow to Show Last Modified Date instead of Post Published Date in WordPressu003c/strongu003e without plugin.

Total Time: 1 minute

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.u003cbru003e/**u003cbru003eUpdate Dateu003cbru003e*/u003cbru003efunction show_last_modified_date( $content ) {u003cbru003e$original_time = get_the_time(‘U’);u003cbru003e$modified_time = get_the_modified_time(‘U’);u003cbru003eif ($modified_time u003e= $original_time + 86400) {u003cbru003e$updated_time = get_the_modified_time(‘h:i a’);u003cbru003e$updated_day = get_the_modified_time(‘F jS, Y’);u003cbru003e$modified_content .= ‘Updated on: ‘. $updated_day . ‘u003cbru003e’;u003cbru003e}u003cbru003e$modified_content .= $content;u003cbru003ereturn $modified_content;u003cbru003e}u003cbru003eadd_filter( ‘the_content’, ‘show_last_modified_date’ );

Step 3: Save and Refresh

Now, save function php file and refresh your page.u003cbru003e

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

FAQ

★ 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.

Leave a Comment

Your email address will not be published. Required fields are marked *