How to Display the “Last Updated” Date of Your Posts on Your WordPress website

| Last Updated: | In: WordPress, WordPress Beginners, WordPress Snippets


Many popular bloggers removed the post date from their articles, This is not a good practice and you should never remove dates from your blog posts. In this tutorial, I will explain the simple & easy code add last updated date on your post in your WordPress site.

In recent changes in Google Search Algorithm, the publish date is also a factor into the search ranking algorithm and it is also visible in SERPs.

Step to display the last updated date on your post

Follow the below step to display the last updated date on your WordPress post. Open wp-contents/themes/your-theme/functions.php file and add the below code at the end of the file.

After adding the code, visit your post on front-end site, you will see the last updated date & time. See the below screenshot.

Now open your style.css file and add the below code at the end of the file and save it. This code will highlight the last updated date on your post.

After added the above css code, it will look like below screenshot.


About: Prem Tiwari

Prem Tiwari is the founder of freewebmentor.com and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.


You may also like:


, , , , ,