I couldn’t readily find an answer to this question via the google. So here it is: If you want to insert a ‘last updated’ or ‘last modified’ date on your wordpress page, then there is a simple bit of PHP code you can use for this:

And via Ardamis’s Blog, there is a great way to only display this information if it has been modified after the original post date. This is a good way to let people know if there have been updates since the original post:

= $u_time + 86400) {
echo "and last modified on ";
the_modified_time('F jS, Y');
echo " at ";
the_modified_time();
echo ", "; } ?>

This will display the last modified date and time if it is more than 86400 seconds after the creation date – that is 24 hours.

11 comments
  1. Pingback: Dave Drager
  2. Hi !!!! ;)
    I am Piter Kokoniz. Just want to tell, that your blog is really cool
    And want to ask you: will you continue to post in this blog in future?
    Sorry for my bad english:)
    Thank you:)
    Your Piter

  3. Hi !!!! ;)
    I am Piter Kokoniz. Just want to tell, that your blog is really cool
    And want to ask you: will you continue to post in this blog in future?
    Sorry for my bad english:)
    Thank you:)
    Your Piter

  4. It’s the first time I commented here and I must say you share us genuine, and quality information for bloggers! Good job.
    p.s. You have a very good template for your blog. Where did you find it?

  5. It’s the first time I commented here and I must say you share us genuine, and quality information for bloggers! Good job.
    p.s. You have a very good template for your blog. Where did you find it?

Comments are closed.

You May Also Like

PHP Script for controlling APC PDU via SNMP

This one is neat – you can control those APC PDU Power…

Why ISPs Need To Have Unrestricted P2P Traffic

Names like Comcast, Verizon, SBC, RoadRunner, Cox, Charter – control the vast…

Post on Makeuseof: Keeping Safe on the Web: 8 Firefox Addons for Privacy and Security

I have a new post up on Makeuseof, regarding Firefox Addons for…

.htaccess stupid tips and tricks

Found an encyclopedic list of “stupid” .htaccess tricks. Includes many useful ones…