PageForge 1.3: Überprüfen Sie jeden Durchlauf, bevor er schreibt, aktualisierte Seiten, SpinTax und wiederaufnehmende Batches. Sehen Sie, was sich geändert hat
WP-RelativeDate icon
gepflegt Getestet bis 7.0.9 #2 in ago

WP-RelativeDate

Displays relative date alongside with your post/comments actual date.

Aktive Installationen100+100+ Stufe
Downloads · 30d198▲ +20% vs prev. 30d
Wertung3/52 Bewertungen
Gesundheits-Score54/100Messe
Downloads aller Zeiten43.5KSince Feb 2006
Unterstützung gelöst—Keine aktuellen Threads
erfordertWP 6.8PHP 8.2+
Downloads · 7d50▲ +8.7% week over week
Unser Urteil

Mit Vorsicht verwenden

WP-RelativeDate works, but test it on a staging site before relying on it in 2026. It runs on 100+ sites, is rated 3/5 and was last updated 3 months ago, and scores 54/100 on our health check.

  • Kleine Benutzerbasis (100+ aktive Installationen)
  • Bisher sehr wenige Bewertungen
  • Benötigt PHP 8.2 oder neuer

Wie stapelt es sich?

Side-by-side bei Installationen, Updates, Bewertungen und Support

Tägliche Downloads

4914Aug 23Oct 6Nov 20
Gestern7
Täglicher Durchschnitt (1 Jahr)5
Spitzentag74Jun 8, 2026
Letzte 12 Monate2K

Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.

Ranglisten

Where WP-RelativeDate stands today

WordPress.org Ranglisten suchen

Live-Position in der Plugin-Suche, Top 100
StichwortPositionKonkurrierende PluginsKategorie
ago #20 613 Best ago plugins →
Bemerkungen >100 9,850 Beste Kommentare Plugins →
date >100 10,000 Best date plugins →
relative #15 1,483 Best relative plugins →
time >100 10,000 Best time plugins →

Versionsübernahme

Anteil aktiver Sites pro Release.

  • 1.5164.7%
  • 2.024.7%
  • 1.5010.6%

Bewertungsaufschlüsselung

★★★★★★★★★★ 3 from 2 reviews

  • 5★50.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★50.0%

About WP-RelativeDate

Aus der offiziellen Readme · V2.0.0

Beschreibung

WP-RelativeDate rewrites your post and comment dates as how long ago they were: ‘Today’, ‘Yesterday’, ‘2 Days Ago’, ‘2 Weeks Ago’, ‘2 Hours Ago’, ‘2 Minutes Ago’, ‘2 Seconds Ago’.

There is nothing to configure and no settings screen. WP-RelativeDate rewrites your post and comment dates as soon as it is activated, and leaves anything more than a month old, or from a previous year, exactly as your theme printed it.

Merkmale

  • Post/Comment Date
    • Today
    • Gestern
    • X days ago
    • X weeks ago
  • Post/Comment Time
    • X seconds ago
    • X minutes ago
    • X hours ago

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.

Verwendung

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.

Beispiele

  • Post/Comment Date
    • Today
    • Gestern
    • 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"]

    ago_only drops the date or time and leaves only the relative phrase. It accepts true/false, 1/0, yes/no and on/off.

Vorlagen-Tags

  • relative_post_the_date( $format, $before, $after, $ago_only, $display ) — a drop-in replacement for the_date(). $before and $after carry markup, exactly as they do in the_date().

Turning It Off For One Template

The plugin has no settings screen. To leave a template’s dates alone, remove the filter before the loop:

remove_filter( 'get_the_date', 'relative_post_date', 999 );

The four callbacks are relative_post_date on get_the_date, relative_post_time on get_the_time, relative_comment_date on get_comment_date and relative_comment_time on get_comment_time, all at priority 999.

Removing the get_the_date filter also covers the_date(), which builds its output by calling get_the_date(). The same goes for the_time(), comment_date() and comment_time().

Installation

  1. Installieren und aktivieren Sie das Plugin.

That is the whole of it. There is no settings screen and nothing to configure: your post and comment dates are rewritten as soon as the plugin is active, and anything older than a month is left exactly as your theme printed it.

Änderungsprotokoll

Requires WordPress 6.8 and PHP 8.2. Relative dates will start appearing where they never did before. Since 1.20 the plugin hooked the_date() and the_time(), which almost no modern theme calls — every default theme since Twenty Nineteen builds its post meta from get_the_date() instead. The plugin now hooks the getters, so a theme that showed plain dates for years will show "Today" and "3 days ago" the moment you update. To switch it off for one template, see "Turning It Off For One Template" above. If you had turned the plugin off for a template, the line has changed. remove_filter( 'the_date', 'relative_post_date', 999 ) no longer removes anything; use get_the_date, and likewise get_the_time in place of the_time. The two comment filters are unchanged. ago_only="false" now does what it says. Until 2.0.0 the shortcode read the string "false" as true, so [relativedate ago_only="false"] printed only "3 days ago" instead of the date. Change those shortcodes to ago_only="true" if you were relying on it. Markup passed to relative_post_the_date() reaches the page again. Since 1.51.1 the tag escaped its own $before and $after arguments, so a theme passing `` got the literal characters printed. The plugin now stores one row, wp_relativedate_version, and deletes it on uninstall. There is still no settings screen, and no template tag or shortcode changed name.

2.0.0

  • BREAKING: Requires WordPress 6.8 and PHP 8.2, up from 6.0 and 7.4.
  • BREAKING: The post callbacks moved from the_date/the_time to get_the_date/get_the_time. If you opted a template out with remove_filter( 'the_date', 'relative_post_date', 999 ), name the getter instead.
  • NEW: Restructured into includes/, with the date and time calculations in a WP_RelativeDate_Core class.
  • NEW: Added the wp_relativedate_version row, and an uninstall.php that deletes it on a single site and across a network.
  • NEW: Added a PHPUnit test suite and GitHub Actions CI.
  • CHANGED: The two shortcode callbacks are now methods on the WP_RelativeDate class. Shortcodes are removed by tag, so remove_shortcode( 'relativedate' ) is unaffected.
  • FIXED: Post dates now work on any theme using get_the_date() or get_the_time(), which is every classic theme since Twenty Nineteen. The plugin previously only hooked the_date() and the_time(), so it appeared to do nothing on most themes.
  • FIXED: Comment dates now work on block themes. Core’s Comment Date block passes the comment as an argument and never sets the global the plugin used to read.
  • FIXED: relative_post_the_date() no longer escapes $before and $after, which had been rendering <h2> and friends as literal text since 1.51.1.
  • FIXED: ago_only="false" now means false. The documented spelling had always been read as true.
  • FIXED: Post and comment dates no longer raise “Attempt to read property on null” when there is no post or comment in scope, which a recent-comments widget could trigger.
  • FIXED: Content dated ahead of the server clock no longer renders “(-300 seconds ago)”.
  • FIXED: Removed load_plugin_textdomain(), which trips _doing_it_wrong on WordPress 6.7 and later.

Vollständiges Änderungsprotokoll auf WordPress.org →

Screenshots

Every post date on the front page, written as how long ago it was
Every post date on the front page, written as how long ago it was
The relativedate and relativetime shortcodes, in a post published minutes ago
The relativedate and relativetime shortcodes, in a post published minutes ago

Für Entwickler

Ist das dein Plugin? Zeigen Sie die Zahlen.

Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.

Aktiv installiert Badge Bewertungsabzeichen Gesundheits-Score-Abzeichen

Best WP-RelativeDate alternatives

All ago plugins →
Alternativen
Rang Plugin Aktive Installationen Wertung Aktualisierten Gesundheit
1 Meks Time Ago Meks Time Ago Automatically change your post date display to "time ago" format like 1 hour ago, 3 days… von meks 10K+ ★★★★★★★★★★ 4.3 (9) Vor 12 Monaten 54

Fragen und Antworten

WP-RelativeDate: quick answers

Gerade Antworten, gezogen von Live WordPress.org Daten.

Quelle: WordPress.org

Is WP-RelativeDate free?

Yes. WP-RelativeDate is free to download and use from the official WordPress.org plugin directory.

Is WP-RelativeDate safe to use in 2026?

WP-RelativeDate works, but test it on a staging site before relying on it in 2026. It runs on 100+ sites, is rated 3/5 and was last updated 3 months ago, and scores 54/100 on our health check.

How many websites use WP-RelativeDate?

WP-RelativeDate is active on 100+ WordPress websites and has been downloaded 43,486 times since it launched in February 2006. It was downloaded 198 times in the last 30 days.

Does WP-RelativeDate work with WordPress 7.1?

WP-RelativeDate is officially tested up to WordPress 7.0.9, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

What PHP version does WP-RelativeDate need?

WP-RelativeDate requires PHP 8.2 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was WP-RelativeDate last updated?

The latest version, 2.0.0, was released on August 9, 2026 (3 months ago).

Who makes WP-RelativeDate?

WP-RelativeDate is developed and maintained by Lester Chan.

What are the best alternatives to WP-RelativeDate?

The most popular alternatives to WP-RelativeDate are Meks Time Ago (10K+ installs).

Angetrieben von PageForge

Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.

PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.

  • CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
  • seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
  • Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
  • Kostenlos auf WordPress.org, keine Kreditkarte

↑↓ bewegen↵ öffnen