Contributors: GamerZ
Donate link: http://lesterchan.net/site/donation/
Tags: date, relative, relativedate, days, ago, weeks, since, hours, seconds, minutes, today, yesterday
Requires at least: 2.8
Tested up to: 6.3
Stable tag: trunk
Displays relative date alongside with your post/comments actual date.
Like 'Today', 'Yesterday', '2 Days Ago', '2 Weeks Ago', '2 'Seconds Ago', '2 Minutes Ago', '2 Hours Ago'.
You need not do anything. WP-RelativeDate will automatically modify your post/comment date or time display. No text will be added if the post or comment is more than a month old.
It will add the following text accordingly:
- Post/Comment Date
- Today
- Yesterday
- X days ago
- X weeks ago
- Post/Comment Time
- X seconds ago
- X minutes ago
- X hours ago
- Post/Comment Date
- Today
- Yesterday
- 10th January 2007 (2 days ago)
- 25th January 2007 (2 weeks ago)
- Post/Comment Time
- 21:10 (2 seconds ago)
- 21:15 (5 minutes ago)
- 22:15 (2 hours ago)
[relativedate]
[relativedate date_format="jS F Y" ago_only="false"]
[relativetime]
[relativetime time_format="H:i" ago_only="false"]
https://github.com/lesterchan/wp-relativedate
http://dev.wp-plugins.org/browser/wp-relativedate/i18n/
I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appreciate it. If not feel free to use it without any obligations.
- NEW: Add in
[relativedate]
and[relativetime]
shortcode.
- NEW: Use _n() Instead Of __ngettext() And _n_noop() Instead Of __ngettext_noop()
- FIXED: Pass In Default Values For $d, $before And $after In relative_post_date()
- NEW: Works For WordPress 2.6
- NEW: Better Translation Using __ngetext() by Anna Ozeritskaya
- NEW: Uses /wp-relativedate/ Folder Instead Of /relativedate/
- NEW: Uses wp-relativedate.php Instead Of relativedate.php
- New: relative_post_the_date(); Alternative To WordPress the_date()
- FIXED: Post Of The Same Date But Different Year Still Will Not Display Relative Date
- NEW: Works For WordPress 2.1 Only
- NEW: Localization WP-RelativeDate
- NEW: Initial Release
N/A
- Post - Today
- Post - Yesterday
- Post - Days Ago
- Post - Weeks Ago
- Comment - Seconds Ago
- If you want to display Relative Date in every posts, use
relative_post_the_date()
instead ofthe_date()
in your theme.