wp-days-ago v2.0.2

My WordPress plugin, wp-days-ago, has been updated to version 2.0.2. The latest version is now 2.5, more information can be found here.

This plugin displays the number of years, days, hours and minutes since a post or a page was published. 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”, “76 days ago”, “2 years, 13 days ago” and so on. It’s also possible to make the plugin behave like the 1.x version and turn off displaying minutes and hours. The plugin will then fall back to “Today” for everything published less than 24 hours ago and not display minutes and hours. There are options for defining a prepending and appending text and change all the textual output from the plugin, for instance “minutes ago” and “One week ago”, making it easy for you to translate it to any language you want.

Installation

  1. Download the plugin.
  2. Unzip the contents of the downloaded file to the /wp-content/plugins/ directory of your WordPress installation.
  3. Log in to your WordPress dashboard and activate the wp_days_ago plugin that should now be visible in the list.
  4. You can now insert anywhere in The Loop in your WordPress theme.
  5. Optionally, you can use instead to turn off the fine grained option (see changelog below). This will make the plugin behave like the 1.x version.

No changes to your theme or configuration are necessary when you upgrade from a previous version.

Changelog

  • New feature: Added text “Some time in the future” for scheduled posts (visible in preview mode only).
  • 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.

For detailed information on usage and available parameters, please see the plugin’s page at WordPress.org or the readme-file in the ZIP-file.


Feedback

Do you have any thoughts you want to share? A question, maybe? Or is something in this post just plainly wrong? Then please send an e-mail to vegard at vegard dot net with your input. You can also use any of the other points of contact listed on the About page.

Caution

It looks like you're using Google's Chrome browser, which records everything you do on the internet. Personally identifiable and sensitive information about you is then sold to the highest bidder, making you a part of surveillance capitalism.

The Contra Chrome comic explains why this is bad, and why you should use another browser.