This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

A Long Time Ago


A Long Time Ago is a WordPress plugin that replaces the default post time (for example: โ€œPosted on 01/01/2011 at 11:11โ€) with โ€œPosted x time agoโ€ (examples: โ€œJust nowโ€, โ€œ2 hours agoโ€, โ€œYesterdayโ€, โ€œon Thursdayโ€, โ€œ3 weeks agoโ€, โ€œ1 year agoโ€).


Features Include:

  • Translation-ready. Includes English, Polish and Spanish.
  • [time_ago] shortcode allowing to place the time within posts and plugins.
  • ISO-formatted <time> HTML element
  • special cases: โ€œjust nowโ€ and โ€œyesterdayโ€


  • Function improving display of weekdays when using Polish language


  1. Upload long-time-ago folder to the /wp-content/plugins/ directory or go to your WordPress Admin Panel -> Plugins -> Add New -> Upload (wp-admin/plugin-install.php?tab=upload)
  2. Activate the plugin through the โ€˜Pluginsโ€™ menu in WordPress
  3. Use time_ago() to place the posted on date in your templates or get_time_ago() to retrieve it. You can also use the [time_ago] shortcode.


How do I retrieve/display the formatted date?
  • To echo the date within the theme use <?php time_ago() ?>.
  • To retrieve the date to a variable use <?php get_time_ago() ?>.
  • To display it within content or in visual editors use the [time_ago] shortcode.
How do I replace the *posted on* date format in my theme?

Various themes use different methods to display the โ€œposted onโ€ date.

For themes based on _s such as twentyfourteen you can replace all instances of twentyfourteen_posted_on() (names vary from theme to theme but chances are it will be called themename_posted_on()) appearing across the theme with time_ago().

You will most likely find the function in the following template files: content.php, content-single.php etc.


There are no reviews for this plugin.

Contributors & Developers

“A Long Time Ago” is open source software. The following people have contributed to this plugin.


Translate “A Long Time Ago” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Initial release. Includes English, Polish and Spanish translations.