Title: WP-RelativeDate
Author: Lester Chan
Published: <strong>08 Fevral 2006</strong>
Last modified: 09 Avqust 2023

---

Qoşmaları axtar

![](https://ps.w.org/wp-relativedate/assets/banner-772x250.jpg?rev=1206765)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/wp-relativedate/assets/icon.svg?rev=978084)

# WP-RelativeDate

 By [Lester Chan](https://profiles.wordpress.org/gamerz/)

[Download](https://downloads.wordpress.org/plugin/wp-relativedate.zip)

 * [Details](https://az.wordpress.org/plugins/wp-relativedate/#description)
 * [Reviews](https://az.wordpress.org/plugins/wp-relativedate/#reviews)
 * [Development](https://az.wordpress.org/plugins/wp-relativedate/#developers)

 [Dəstək](https://wordpress.org/support/plugin/wp-relativedate/)

## Description

Like ‘Today’, ‘Yesterday’, ‘2 Days Ago’, ‘2 Weeks Ago’, ‘2 ‘Seconds Ago’, ‘2 Minutes
Ago’, ‘2 Hours Ago’.

### General Usage

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

### Examples

 * 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)

### Shortcodes

 * `[relativedate]`
    - `[relativedate date_format="jS F Y" ago_only="false"]`
 * `[relativetime]`
    - `[relativetime time_format="H:i" ago_only="false"]`

### Build Status

### Development

[https://github.com/lesterchan/wp-relativedate](https://github.com/lesterchan/wp-relativedate)

### Translations

[http://dev.wp-plugins.org/browser/wp-relativedate/i18n/](http://dev.wp-plugins.org/browser/wp-relativedate/i18n/)

### Credits

 * Plugin icon by [Freepik](http://www.freepik.com) from [Flaticon](http://www.flaticon.com)

### Donations

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.

## Screenshots

 * [[
 * Post – Today
 * [[
 * Post – Yesterday
 * [[
 * Post – Days Ago
 * [[
 * Post – Weeks Ago
 * [[
 * Comment – Seconds Ago

## FAQ

### Display Relative Date in every posts

 * If you want to display Relative Date in every posts, use `relative_post_the_date()`
   instead of `the_date()` in your theme.

## Reviews

![](https://secure.gravatar.com/avatar/0cb86a2907fb3ff7b42bbeb9395d62d80a7eff0894444426bc7200d458efe58b?
s=60&d=retro&r=g)

### 󠀁[Автоматическая вставка измененной даты в комментарий](https://wordpress.org/support/topic/%d0%90%d0%b2%d1%82%d0%be%d0%bc%d0%b0%d1%82%d0%b8%d1%87%d0%b5%d1%81%d0%ba%d0%b0%d1%8f-%d0%b2%d1%81%d1%82%d0%b0%d0%b2%d0%ba%d0%b0-%d0%b8%d0%b7%d0%bc%d0%b5%d0%bd%d0%b5%d0%bd%d0%bd%d0%be%d0%b9-%d0%b4-2/)󠁿

 [microgosu](https://profiles.wordpress.org/microgosu/) 03 Sentyabr 2016

Плагин работает, но после установки плагина, измененная дата в комментарий вставляется
автоматически, а хотелось бы, чтобы это было при помощи php кода или шорткода

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/wp-relativedate/reviews/)

## Contributors & Developers

“WP-RelativeDate” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Lester Chan ](https://profiles.wordpress.org/gamerz/)

“WP-RelativeDate” has been translated into 2 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/wp-relativedate/contributors)
for their contributions.

[Translate “WP-RelativeDate” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-relativedate)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wp-relativedate/), 
check out the [SVN repository](https://plugins.svn.wordpress.org/wp-relativedate/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/wp-relativedate/)
by [RSS](https://plugins.trac.wordpress.org/log/wp-relativedate/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

### Version 1.51

 * NEW: Add in `[relativedate]` and `[relativetime]` shortcode.

### Version 1.50 (01-06-2009)

 * NEW: Use _n() Instead Of __ngettext() And _n_noop() Instead Of __ngettext_noop()

### Version 1.40 (12-12-2008)

 * FIXED: Pass In Default Values For $d, $before And $after In relative_post_date()

### Version 1.31 (16-07-2008)

 * NEW: Works For WordPress 2.6
 * NEW: Better Translation Using __ngetext() by [Anna Ozeritskaya](http://hweia.ru/)

### Version 1.30 (01-06-2008)

 * NEW: Uses /wp-relativedate/ Folder Instead Of /relativedate/
 * NEW: Uses wp-relativedate.php Instead Of relativedate.php

### Version 1.20 (01-10-2007)

 * New: relative_post_the_date(); Alternative To WordPress the_date()

### Version 1.11 (01-06-2007)

 * FIXED: Post Of The Same Date But Different Year Still Will Not Display Relative
   Date

### Version 1.10 (01-02-2007)

 * NEW: Works For WordPress 2.1 Only
 * NEW: Localization WP-RelativeDate

### Version 1.00 (01-03-2006)

 * NEW: Initial Release

## Meta

 *  Version **1.51**
 *  Last updated **3 il öncə**
 *  Active installations **100+**
 *  WordPress version ** 2.8 or higher **
 *  Tested up to **6.3.8**
 *  Languages
 * [English (US)](https://wordpress.org/plugins/wp-relativedate/), [German](https://de.wordpress.org/plugins/wp-relativedate/),
   and [Swedish](https://sv.wordpress.org/plugins/wp-relativedate/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/wp-relativedate)
 * Tags
 * [ago](https://az.wordpress.org/plugins/tags/ago/)[date](https://az.wordpress.org/plugins/tags/date/)
   [days](https://az.wordpress.org/plugins/tags/days/)[relative](https://az.wordpress.org/plugins/tags/relative/)
   [relativedate](https://az.wordpress.org/plugins/tags/relativedate/)
 *  [Advanced View](https://az.wordpress.org/plugins/wp-relativedate/advanced/)

## Reytinqlər

 3 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/wp-relativedate/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/wp-relativedate/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/wp-relativedate/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/wp-relativedate/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/wp-relativedate/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-relativedate/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-relativedate/reviews/)

## Contributors

 *   [ Lester Chan ](https://profiles.wordpress.org/gamerz/)

## Dəstək

Şərhiniz varmı? Yardım lazımdırmı?

 [Dəstək forumuna bax](https://wordpress.org/support/plugin/wp-relativedate/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://lesterchan.net/site/donation/)