Description
Easy Relative Date is a simple plugin to add relative date supports on wordpress powered websites, like ‘Today’, ‘Yesterday’, ‘2 Days Ago’, ‘2 Weeks Ago’, ‘2 ‘Seconds Ago’, ‘2 Minutes Ago’, ‘2 Hours Ago’. The main advantage of the plugin is that it doesn’t override standard wordpress the_date()
and the_time()
functions, so you can use these functions if you need as well.
Installation
- Upload
Easy Relative Date
folder to the/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Place
<?php if(!function_exists('easy_relative_date')){the_time('F jS, Y'); } else { echo easy_relative_date(get_the_time('U')); } ?>
in your templates for entries and<?php if(!function_exists('easy_relative_date')){comment_date() . ' at ' . comment_time(); } else { echo easy_relative_date(get_comment_time('U')); } ?>
for comments.
FAQ
Coming Soon
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Easy Relative Date” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Easy Relative Date” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.2
- Added localization support.
1.1
- Count seconds as well. It used to write “A moment ago” if the post was published less than a minute ago.
1.0
- Initial Release.