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

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.

wordpress last updated date on your post

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.

Last updated dates in blog post

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.

after added the css last updated date on your post

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

Article Tags: , , , , ,

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Solved Programs