WordPress.org

Ready to get started?Download WordPress

Plugin Directory

A While Ago

Show timestamp for a post or page using a relative description (e.g. "Hours ago", "5 days ago").

  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 <? wp_awhileago(); ?> anywhere in The Loop in your WordPress theme.

Usage

<?php wp_awhileago( $prepend, $append, $descriptions); ?>

Parameters

$prepend (string) (optional) This text will be prepended to the plugin's default output. Default value is "" (empty string).

$append (string) (optional) This text will be appended to the plugin's default output. Default value is "" (empty string).

$descriptions (array) (optional) This array allows you to change the descriptive strings displayed by the plugin. The default value is array: "Moments ago", "Hours ago", "Today", "Yesterday", "days", "week", "weeks", "month", "months", "year", "years", "ago", "At some point in time".

Requires: 3.0 or higher
Compatible up to: 3.5.2
Last Updated: 2013-5-19
Downloads: 321

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

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

100,1,1