Code: Display Last Modified Date in WordPress
June 20th, 2009
Code Snippets, WordPress Tutorials
If you run a website or blog professionally, it is always good business practice to update your older posts to keep them as valid and current as possible. This helps retain (or even grow) their search engine positions, and helps keep your blog from having dead links or outdated content.
One of the things I recommend readers do on these types of blogs which use WordPress is to adjust the date field to instead show the last modified date. This way posts that were written two years ago won’t have that date if you’ve updated them more recently!
Here is the code you’ll need to easily accomplish this. As always, you’ll want to make a backup of your single.php file (or any files you will be changing) before proceeding.

