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
- 27.09.08: Google pagerank update - 27th September 2008 (2)
- 09.10.08: Google Checkout Error message_ No seller found with ID (0)
- 22.10.08: How to change permissions of specific file extensions in Linux (0)
- 13.10.08: WP-Shopping Cart checkout problem [SOLVED] (0)
- 02.10.08: Transparent DIV SPAN for all browsers (0)








Leave a comment