[WordPress] 外掛分享: Next Date

首頁外掛目錄 › Next Date
100+
安裝啟用
★★★★★
5/5 分(1 則評價)
457 天前
最後更新
問題解決
WordPress 2.0.2+ v1.0 上架:2013-09-17

內容簡介

需要一個在你網站頁面上顯示清單中下一個日期的工具嗎? Nextdate 會挑出清單中下一個即將到來的日期並以你所喜愛的格式顯示!

也許你有一個每月重複舉行的會議或活動,你想總是顯示下一個日期以維持網頁最新狀態。

使用 [nextdate] 短碼以一個日期清單來取得下一個日期。

需要填入 dates 參數,這個清單中應是合法且以逗號分隔的日期,格式可以是任意一個 PHP 能辨識 的格式,例如:5/15/2011, 2012-01-15, 21.9.2013, Tuesday, next Thursday

你也可以輸入一個預設值default,例如 [nextdate dates="5/15/1993, 7/19/2008" default="No upcoming party" /],當這個清單中所有日期都不在未來,會顯示這個預設值。

你也可以選擇性地指定 PHP 友善的日期格式,例如 [nextdate dates="next Thursday" format="l, F jS" /],去自訂日期格式。預設是使用F j, Y格式,例如September 18, 2013。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Next Date」→ 直接安裝(推薦)

原文外掛簡介

Want to always have the next date from a list displayed on a page of your site? Nextdate picks the next upcoming date from your list and displays it in the format you like!
Perhaps you have a recurring monthly meeting or event and you want to always display the next date to keep the page current.
Use the [nextdate] shortcode with a list of dates to get the next date from the list.
The dates parameter is required and should include a comma separated list of valid dates in any format that PHP will recognize, for example 5/15/2011, 2012-01-15, 21.9.2013, Tuesday, next Thursday
You can also specify a default value like [nextdate dates="5/15/1993, 7/19/2008" default="No upcoming party" /] to display a default value when none of the dates are in the future.
You can optionally specify a PHP friendly date format, for example [nextdate dates="next Thursday" format="l, F jS" /] to format the date. By default, dates are returned back in the F j, Y format, i.e. September 18, 2013.
For an example of usage, see how the Bay Area Mastermind lists their next upcoming event dates.

文章
Filter
Apply Filters
Mastodon