Plugin Directory

wp-days-ago

Displays the number of years, days, hours and minutes since a post or a page was published in the same format as Facebook, Twitter etc.

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: 3.5.1
Last Updated: 2013-2-9
Downloads: 4,041

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says 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