[WordPress] 外掛分享: Simple Post Expiration

首頁外掛目錄 › Simple Post Expiration
500+
安裝啟用
★★★★
4.6/5 分(7 則評價)
3446 天前
最後更新
問題解決
WordPress 3.6+ v1.0.1 上架:2014-08-18

內容簡介

這是一個簡單的外掛程式,允許您為文章設置到期日期。一旦文章到期,「已過期」將出現在文章標題前綴。

您可以使用 [expires] 短代碼來顯示文章的到期狀態。

[expires] 短代碼接受 5 個可選參數:

expires_on – 當文章尚未過期時顯示的文字。預設:This item expires on: %s

expired – 當文章過期時顯示的文字。預設:This item expired on: %s

date_format – 顯示到期日期的格式

class – 給 DIV 元素指定的類別或類別

id – 給 DIV 元素指定的 ID

其中的 %s 會被替換為到期日期。

您是否發現了錯誤,或者有建議或改進意見要提交?此外掛程式可在 Github 上使用,歡迎提交拉取要求!

外掛標籤

開發者團隊

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

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

原文外掛簡介

A simple plugin that allows you to set an expiration date on posts. Once a post is expired, “Expired” will be prefixed to the post title.
You can show the expiration status of a post using the [expires] short code.
The [expires] short code accepts 5 optional parameters:

expires_on – The text to be shown when a post has not yet expired. Default: This item expires on: %s

expired – The text to be shown when a post is expired. Default: This item expired on: %s

date_format – The format the expiration date should be displayed in

class – The class or classes given to the DIV element

id – The ID given to the DIV element

The %s will be replaced with the expiration date.
Have you found a bug or have a suggestion or improvement you’d like to submit? This plugin is available on Github and pull requests are welcome!

延伸相關外掛

文章
Filter
Mastodon