Relative Date Template Tag
开发者 |
ericrallen
|
更新时间 |
2013年9月19日 06:54 |
PHP版本: |
3.5.0 及以上 |
WordPress版本: |
3.5.1 |
版权: |
MIT |
版权网址: |
版权信息
|
详情介绍:
Adds the_relative_date()
and get_the_relative_date()
template tags to your arsenal of template tags.
These template tags will return the relative time passed since the post was published, like "12 hours ago" or "3 weeks ago."
Tag to Print Relative Time:
Tag to Retrieve Relative Time:
安装:
- Upload
wp-relative-date-template-tag
to your plug-in directory or install it from the Wordpress Plug-in Repository
- Activate the plugin through the 'Plugins' menu in WordPress
- Change
the_date()
to the the_relative_date()
wherever you would prefer the relative date to show up
更新日志:
1.0.5
- Updated de-pluralize function to work correctly.
1.0.0
- First Release. Switched parameters to be an array instead of explicitly-defined parameters to make it easier for developers to only pass the values they need.
0.0.1
- Initial set up. Getting it ready for the WP Plug-in repo and github duality.