This plugin 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, in the same format as Facebook, Twitter etc. Examples are “Just now” (less than a minute ago), “47 minutes ago” (less than an hour ago), “3 hours ago” (less than a day ago), “Yesterday”, “3 days ago”, “One week ago”, “3 months ago”, “3 months, 4 days ago”, “2 years, 13 days ago” and so on. It’s also possible to configure wp-days-ago to fall back to displaying the actual date and time when a certain number of seconds after publishing time has been reached.
Cache plugins, like W3 Total Cache and WP Super Cache, are supported through the use of AJAX. This means that the plugin will show correct information even if the page is cached. Please see the installation instructions, and the stopUsingAjaxAfter parameter in particular, for details.
- Bengali (thanks to Mahmud, C.E.O, S. M. Foundation)
- Dutch (thanks to Marjolein Boer, Pixelein)
- French (thanks to Alondi Commanda, Alondi Consulting)
- German (thanks to WordPress.org user ezkay)
- Indonesian (thanks to FJ Bakry, Camisto)
- Kurdish (Central Kurdish)
- Malaysian (thanks to FJ Bakry, Camisto)
- Norwegian (bokmål)
- Norwegian (nynorsk)
- Persian (Farsi) (thanks to WordPress.org user famarini)
- Russian (thanks to Yuri from www.coinside.ru)
- Spanish (thanks to Andrew Kurtis, WebHostingHub)
- Ukranian (thanks to Alexander Avramenko)
...so of course I love it!
- Added Malaysian and Indonesian translations (thanks to FJ Bakry, Camisto).
- Change: Replaced empty call to gmmktime() with empty call to time(). This removes the warnings reported here.
- New feature: The plugin can now also be used to show posts/pages modified dates, and comments published dates.
- Added Ukranian translation (thanks to Alexander Avramenko).
- Updated German translation.
- Added support for not displaying the “ago” appender for translations that do not use it.
- Added Kurdish (Central Kurdish) translation.
- Added German translation (thanks to WordPress.org user ezkay).
- Bugfix: Fixed an unfortunate bug where the number of days would be wrong in some cases if “yesterday” was configured not to be shown.
- 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.
- Added Persian (Farsi) translation (thanks to WordPress.org user famarini).
- Change: Updated Dutch translation.
- Bugfix: Added missing language files.
- Added Bengali translation (thanks to Mahmud, C.E.O, S. M. Foundation).
- Added French translation (thanks to Alondi Commanda, Alondi Consulting).
- Added Dutch translation (thanks to Marjolein Boer, Pixelein).
- Added Russian translation (thanks to Yuri from www.coinside.ru).
- Added Spanish (thanks to Andrew Kurtis, WebHostingHub), Turkish, Swedish and Norwegian (nynorsk) translations.
- 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.
- 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.
- 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.
- Bugfix: Fixed a major bug that happened when using the wp_days_ago method. Thanks to user heinnge for reporting this.
- 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.
- 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.
- New feature: Added text “Some time in the future” for scheduled posts (visible in preview mode only).
- Change: Removed some debug code that had made its way into the release.
- 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.
- Changed some of the default texts so that they start with a capital letter.
- 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.
- Initial version.