Title: A Long Time Ago
Author: amielucha
Published: <strong>ජනවාරි 23, 2014</strong>
Last modified: ජනවාරි 23, 2014

---

Search plugins

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.

![](https://s.w.org/plugins/geopattern-icon/a-long-time-ago.svg)

# A Long Time Ago

 By [amielucha](https://profiles.wordpress.org/amielucha/)

[Download](https://downloads.wordpress.org/plugin/a-long-time-ago.zip)

 * [Details](https://si.wordpress.org/plugins/a-long-time-ago/#description)
 * [Reviews](https://si.wordpress.org/plugins/a-long-time-ago/#reviews)
 *  [Installation](https://si.wordpress.org/plugins/a-long-time-ago/#installation)
 * [Development](https://si.wordpress.org/plugins/a-long-time-ago/#developers)

 [Support](https://wordpress.org/support/plugin/a-long-time-ago/)

## Description

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”).

Enjoy!

#### 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”

#### Bonus:

 * Function improving display of weekdays when using Polish language

## Installation

 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.

## FAQ

  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.

## Reviews

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.

Contributors

 *   [ amielucha ](https://profiles.wordpress.org/amielucha/)

[Translate “A Long Time Ago” into your language.](https://translate.wordpress.org/projects/wp-plugins/a-long-time-ago)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/a-long-time-ago/), 
check out the [SVN repository](https://plugins.svn.wordpress.org/a-long-time-ago/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/a-long-time-ago/)
by [RSS](https://plugins.trac.wordpress.org/log/a-long-time-ago/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.1

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

## Meta

 *  Version **0.1**
 *  Last updated **වසර 13ක් ago**
 *  Active installations **10+**
 *  WordPress version ** 3.0.1 or higher **
 *  Tested up to **3.7.41**
 *  Language
 * [English (US)](https://wordpress.org/plugins/a-long-time-ago/)
 * Tags
 * [date](https://si.wordpress.org/plugins/tags/date/)[time](https://si.wordpress.org/plugins/tags/time/)
   [timestamp](https://si.wordpress.org/plugins/tags/timestamp/)[yesterday](https://si.wordpress.org/plugins/tags/yesterday/)
 *  [Advanced View](https://si.wordpress.org/plugins/a-long-time-ago/advanced/)

## Ratings

 4 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/a-long-time-ago/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/a-long-time-ago/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/a-long-time-ago/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/a-long-time-ago/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/a-long-time-ago/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/a-long-time-ago/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/a-long-time-ago/reviews/)

## Contributors

 *   [ amielucha ](https://profiles.wordpress.org/amielucha/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/a-long-time-ago/)