[WordPress] 外掛分享: Current Year Shortcodes

首頁外掛目錄 › Current Year Shortcodes
1,000+
安裝啟用
★★★★★
5/5 分(3 則評價)
805 天前
最後更新
問題解決
WordPress 4.6+ v0.3 上架:2022-12-19

內容簡介

「Current Year Shortcodes」讓你可以透過簡單的簡碼在 WordPress 網站的任何位置插入當前年份。

在任何文章、頁面或小工具中使用簡碼 [Y] ,即可顯示當前年份。

如何使用
[Y] - 插入四位數字的當前年份,例如 **2022**
[y] - 插入兩位數字的當前年份,例如 **22**

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.3) 或搜尋安裝

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

原文外掛簡介

Current Year Shortcodes lets you insert the current year, month and day anywhere in your WordPress site with a simple shortcode.
Use the shortcode [Y] in any post, page or widget to display the current year.
How it works
[Y] – inserts the current year with four digits e.g. 2023
[y] – inserts the current year with two digits e.g. 23
[m] – inserts the current month with two digits e.g. 01
[n] – inserts the current month without leading zeros e.g. 1
[F] – inserts the current month as a text e.g. January
[M] – inserts the current month with three letters e.g. Jan
[d] – inserts the current day with two digits e.g. 06
[j] – inserts the current day without leading zeros e.g. 6
[D] – inserts the current day with three letters e.g. Mon
[l] – inserts the current day as a text e.g. Monday

延伸相關外掛

文章
Filter
Mastodon