Wordpress last edited time code script
Posted: October, 31 2008Display the last edited date and time in Wordpress. To show your users when the last time you updated your Wordpress article was, simply enter the following code where you would like the time code to be displayed.
Key to values
F represents the Month (word)
d represents the Day (numerical)
Y represents the Year (numerical)
<?php the_modified_time('F') ?>,
<?php the_modified_time('d'); ?>
<?php the_modified_time('Y'); ?>
You can see this code working at the bottom of this post.
Non Wordpress sites
You can use the following code to display the last edited date and time on a none wordpress but php driven site.
<?php date_default_timezone_set("EST"); echo date ("Y-m-j h:i:s A (T)", getlastmod()); ?>
Related Articles
- 08.08.10: Magento An error occurred while saving the URL rewrite (2)
- 22.09.09: Reset Session storage options in Magento (1)
- 14.05.10: Kick SSH user (0)
- 06.07.10: JA Slideshow and JoomFish links (0)
- 27.04.10: How to change Linux User (UID) and Group (GID) (0)







Comments RSS Feed




thank you ,,
Go to Top of the page