WordPress.org

Ready to get started?Download WordPress

Forums

Time when last post was posted (2 posts)

  1. sphinxy
    Member
    Posted 2 years ago #

    Hello,

    basically, I want the basic PHP code that will output:

    Posted: 1 hour, 31 minutes ago.

    Etc. if it goes over 24 hours, maybe say 1 day, 1 hour etc.

    Many thanks

  2. dkotter
    Member
    Posted 2 years ago #

    Sounds like trying to match the twitter way of showing time. Here's a function that will do that for you.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.