Title: Simple Relative Date
Author: danivalentin
Published: <strong>2011 年 5 月 7 日</strong>
Last modified: 2011 年 5 月 7 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/simple-relative-date.svg)

# Simple Relative Date

 作者：[danivalentin](https://profiles.wordpress.org/danivalentin/)

[下载](https://downloads.wordpress.org/plugin/simple-relative-date.zip)

 * [详情](https://cn.wordpress.org/plugins/simple-relative-date/#description)
 * [评价](https://cn.wordpress.org/plugins/simple-relative-date/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/simple-relative-date/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/simple-relative-date/#developers)

 [支持](https://wordpress.org/support/plugin/simple-relative-date/)

## 描述

This was based on [Lester Chan’s Relative Date plugin](http://lesterchan.net/wordpress/readme/wp-relativedate.html).

It tries to simplify things a bit. This plugin can:

 * Replace the_date() in the post
 * Replace get_comment_date() or comment_date() in the comments

Note that if your theme is writing the date in a different form, it won’t work. 
You have to
 replace its function call to one of the above (in the TwentyTen theme
for example, replace twentyten_posted_on() by the_date().

Also important to say that, comment replacement won’t work if you are using the 
default wp comment renderer because
 it calls get_comment_time() as well. You have
to do a customized callback function to use with wp_list_comments( array( ‘callback’
=> ‘your_customized_function_here’ ) ). (ok, maybe things were not simplified that
much :/)

There is a options page (under settings in the Admin) where you can choose which
dates you
 want to replace (posts/comments). Posts date are by default checked.

Portuguese translation included.

## 安装

 1. Upload `wp-simplerelativedate.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. If necessary, change the plugin’s options in the options page under settings menu.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Simple Relative Date」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ danivalentin ](https://profiles.wordpress.org/danivalentin/)

[帮助将「Simple Relative Date」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/simple-relative-date)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/simple-relative-date/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/simple-relative-date/)，或通过[RSS](https://plugins.trac.wordpress.org/log/simple-relative-date/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/simple-relative-date/)。

## 额外信息

 *  版本 **1.0**
 *  最后更新：**15 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.7 或更高版本 **
 *  已测试的最高版本为 **3.0.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/simple-relative-date/)
 * 标签
 * [date](https://cn.wordpress.org/plugins/tags/date/)[relative](https://cn.wordpress.org/plugins/tags/relative/)
   [time](https://cn.wordpress.org/plugins/tags/time/)
 *  [高级视图](https://cn.wordpress.org/plugins/simple-relative-date/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/simple-relative-date/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/simple-relative-date/reviews/)

## 贡献者

 *   [ danivalentin ](https://profiles.wordpress.org/danivalentin/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/simple-relative-date/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.danivalentin.net)