WordPress.org

Plugin Directory

wp-days-ago

Displays the number of years, months, days, hours and minutes since a post or a page was published or modified, or a comment was published.

3.2.1

  • Change: Replaced empty call to gmmktime() with empty call to time(). This removes the warnings reported here.

3.2

  • New feature: The plugin can now also be used to show posts/pages modified dates, and comments published dates.

3.1.5

3.1.4

  • Updated German translation.
  • Added support for not displaying the "ago" appender for translations that do not use it.

3.1.3

  • Added Kurdish (Central Kurdish) translation.

3.1.2

  • Added German translation (thanks to WordPress.org user ezkay).

3.1.1

  • Bugfix: Fixed an unfortunate bug where the number of days would be wrong in some cases if "yesterday" was configured not to be shown.

3.1.0

  • Bugfix: Remove hard coded "cet" string that was showed when waiting for AJAX call to finish.
  • New feature: Option to show number of hours instead of "yesterday" before 24 has passed. "Yesterday" don't always make sense if you're having an international audience. The default value is to show "yesterday", so there is no need to change anything unless you want to use the new option. See the installation instructions for details.

3.0.4.3

  • Added Persian (Farsi) translation (thanks to WordPress.org user famarini).

3.0.4.2

  • Change: Updated Dutch translation.

3.0.4.1

  • Bugfix: Added missing language files.

3.0.4

  • Added Bengali translation (thanks to Mahmud, C.E.O, S. M. Foundation).
  • Added French translation (thanks to Alondi Commanda, Alondi Consulting).

3.0.3

  • Added Dutch translation (thanks to Marjolein Boer, Pixelein).

3.0.2

3.0.1

  • Added Spanish (thanks to Andrew Kurtis, WebHostingHub), Turkish, Swedish and Norwegian (nynorsk) translations.

3.0.0

  • Bugfix: Fixed some edge case bugs.
  • Change: Version 3.0.0 is a complete rewrite of the plugin. Functions from version 2.x are still available to ensure backwards compatibility and will continue to work as they used to, but bugs will not be fixed. It's highly recommended that you start to use the _v3 methods described in the installation instructions if you upgade from version 2 or an even earlier version.
  • Change: Now supports translations, see included POT file if you want to translate the plugin into your language.

2.6.1

  • Change: When calculating days, the plugin will now ignore the publishing time and only use the actual date.
  • Change: When calculating years, the plugin will now take into account leap years.

Both changes should lead to a more accurate output from the plugin.

2.6

  • New feature: Support for falling back to showing the date and time a post or page is published instead of "X days ago" and similar a configured number of seconds after the post or page is published. The feature is turned off by default, so if you are upgrading from a previous version of wp-days-ago, there is no need for you to change anything unless you want to use this new feature.

2.5.2

  • Bugfix: Fixed a major bug that happened when using the wp_days_ago method. Thanks to user heinnge for reporting this.

2.5.1

  • New feature: Added a threshold parameter to control when AJAX should be used and when the plugin should automatically fall back to the old way of displaying information. After a day, the plugin doesn't display any detailed information anyway so there is no need to strain the server with a lot of AJAX calls. The information displayed by wp-days-ago will of course be updated when your cache plugin invalidates the content and rebuilds it. The value of the wp_days_ago_ajax method threshold paramterer should match the configured invalidation threshold of your cache plugin.
  • Change: Optimized date calculation and database access code.

2.5

  • New feature: Cached sites are now supported through the use of the wp_days_ago_ajax function. See above for details.
  • Change: Minimum required version of WordPress is now 2.1.

2.0.2

  • New feature: Added text "Some time in the future" for scheduled posts (visible in preview mode only).

2.0.1

  • Change: Removed some debug code that had made its way into the release.

2.0

  • New feature: The plugin now by default displays minutes and hours since a post or page was created.
  • Change: The $offset parameter from the 1.x version is now replaced with a $mode parameter that enables you to prevent the plugin from displaying the minutes and hours since a post or page was published and instead fall back to "Today" for everything published lest than 24 hours ago.

1.7.1

  • Changed some of the default texts so that they start with a capital letter.

1.7

  • Backwards compatible all the way back to WordPress 1.5.
  • The plugin now uses the internal WordPress timezone settings.
  • Added optional parameters that allows configuration of appended text, prepended text and the texts displayed by the plugin.

1.0

  • Initial version.

Requires: 2.1 or higher
Compatible up to: 4.6
Last Updated: 4 weeks ago
Active Installs: 2,000+

Ratings

5 out of 5 stars

Support

0 of 1 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1
100,1,1
100,2,2
100,1,1 100,1,1
100,1,1
100,1,1
100,1,1 100,1,1 100,1,1 100,1,1
100,1,1
100,1,1 100,1,1
100,1,1
100,1,1
100,2,2
100,1,1
100,1,1 100,1,1
100,1,1 100,1,1
100,1,1
100,2,2