[WordPress] 外掛分享: WP-RelativeDate

首頁外掛目錄 › WP-RelativeDate
WordPress 外掛 WP-RelativeDate 的封面圖片
100+
安裝啟用
★★★☆☆
3/5 分(2 則評價)
10 天前
最後更新
問題解決
WordPress 2.8+ v1.51.1 上架:2006-02-07

內容簡介

WP-RelativeDate 外掛能自動顯示文章或評論的相對時間,例如「今天」、「昨天」或「2 天前」,讓使用者更直觀地了解內容的時間性,提升網站的互動性。

【主要功能】
• 自動顯示相對日期和時間
• 支援短碼功能
• 超過一個月的內容不顯示時間標籤

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.51.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP-RelativeDate」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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"]

Development
https://github.com/lesterchan/wp-relativedate
Translations
http://dev.wp-plugins.org/browser/wp-relativedate/i18n/
Credits

Plugin icon by Freepik from Flaticon

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.

延伸相關外掛

文章
Filter
Mastodon