I need a timestamp on my site. A date that will appear each time a page or post is updated. What's the best way to go about this instead of manually editing the published date?
I need a timestamp on my site. A date that will appear each time a page or post is updated. What's the best way to go about this instead of manually editing the published date?
try <?php echo human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' ago'; ?>
reff :
http://codex.wordpress.org/Function_Reference/human_time_diff
You must log in to post.