Forums

What's the best way to implement a timestamp? (3 posts)

  1. estevancarlos
    Member
    Posted 7 months ago #

    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?

  2. alchymyth
    The Sweeper
    Posted 7 months ago #

  3. wp idea
    Member
    Posted 6 months ago #

    try <?php echo human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' ago'; ?>

    reff :
    http://codex.wordpress.org/Function_Reference/human_time_diff

Reply

You must log in to post.

About this Topic

Tags