WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. estevancarlos
    Member
    Posted 2 years 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 & Moderator
    Posted 2 years ago #

  3. wp idea
    Member
    Posted 2 years 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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags