While blogging, Displaying the date when the article was published is crucial. It provides our readers with complete satisfaction of getting the latest information and news.
However, sometimes we need to update our blog posts for adding updated information, Latest Tools, New versions, etc. And we need to ensure our readers notice this update.
Some Themes Automatically Show this update while some may don’t. If your theme isn’t one of them, you are in the right place.
Showing the last update Notification on your posts, you will have to add a PHP code in your themes’ Function.php folder.
*To find functions.php folder, Go to
Cpanel > File Manager> WpContent> themes> your theme name
*For Logging into Cpanel go to – “yourdomain.com/cpanel.”
Reaching your Functions.php folder, edit the folder and at the end add this PHP code wherever you wish to show the updated date:
<?php the_modified_date('F j, Y'); ?>
This code should be pasted as it is. Don’t add anything in this code.
You may find several plugins to add last updated notifications in posts. However, most of them had not been updated for 2 years. There’s one called WP Last Modified Info which works absolutely fine. You can use it in case the PHP method seems too hard for you.
So far, the best way is to use the plugin. That’ll solve your problem without any errors.
There is also an easy way to do that which is installing the code snippets plugin. Simply install the plugin and add the code to it. That’s a beginner-friendly way to do so.
Remember, removing the date from the posts is like deceiving your readers. You should never remove dates from a post.