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.
Plugin URL: http://www.vegard.net/archives/3781/
<?php wp_days_ago( $mode, $prepend, $append, $texts); ?>
$mode (int) (optional) Use any value larger than 0 to turn off displaying minutes and hours and instead fall back to "Today" for everything published less than 24 hours ago. Default value is 0.
$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).
$texts (array) (optional) This array allows you to change the texts used by the plugin. This will, for instance, allow you to translate the output to your language. The default value is array("Today", "Yesterday", "One week ago", "days ago", "year", "years", "ago", "day ago", "days ago", "Just now", "One minute ago", "minutes ago", "1 hour ago", "hours ago", "Some time in the future").
Requires: 1.5 or higher
Compatible up to: 3.3.1
Last Updated: 2011-12-19
Downloads: 1,481




