A While Ago

Show timestamp for a post or page using a relative description (e.g. "Hours ago", "5 days ago").

Author:Gabriel White (profile at wordpress.org)
WordPress version required:3.0
WordPress version tested:3.5.1
Plugin version:0.1
Added to WordPress repository:19-05-2013
Last updated:19-05-2013
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:60
Rated by:2
Plugin URI:http://wordpress.org/extend/plugins/a-while-a...
Total downloads:1 042
Active installs:10+
plugin download
Click to start download

Show timestamp for a post or page using a relative description (e.g. "Hours ago", "5 days ago"). The strings can be be changed easily for translations, and custom text can be prepended or appended to the timestamp.

The rules for the descriptions are (along with the default strings):

  • Within the last 60 minutes: "Moments ago"
  • Within the last 8 hours: "Hours ago"
  • Today: "Today"
  • Yesterday: "Yesterday"
  • 3-6 days ago: "4 days ago"
  • 1-8 weeks ago: "5 weeks ago"
  • 2-11 months ago: "7 months ago"
  • 1-4 years ago: "2 years 5 months ago"
  • 4 or more years ago: "4 years ago"