[WordPress] 外掛分享: Current Year, Symbols and IP Shortcode

首頁外掛目錄 › Current Year, Symbols and IP Shortcode
WordPress 外掛 Current Year, Symbols and IP Shortcode 的封面圖片
10,000+
安裝啟用
★★★★★
5/5 分(5 則評價)
35 天前
最後更新
問題解決
WordPress 2.5+ PHP 5.6+ v2.6 上架:2018-02-21

內容簡介

Current Year, Symbols and IP Shortcode 外掛提供多種短碼功能,讓使用者能夠輕鬆顯示當前年份、月份、日期、著作權符號及用戶 IP 位址,提升網站的動態性與互動性。

【主要功能】
• 顯示當前年份、月份和日期的短碼
• 提供多種著作權和商標符號的短碼
• 顯示當前用戶的 IP 位址

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.6) 或搜尋安裝

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

原文外掛簡介

Don’t work? Open ticket, we answer in max 48h.
How shortcode work: WordPress Codex
Current year, copyright, symbols and user IP with shortcode.
[y] display current year 2026
[m] display current month April
[d] display current day 12
[dmy] display current date 12/04/2026
[c] display copyright symbol ©
[t] display registered trademark symbol ®
[tm] display unregistered trademark symbol ™
[sm] display service mark symbol ℠
[cc] display Copyright
[cy] display symbol of copyright and current year © 2026
[cyy year=”2003″] display symbol of copyright, first year, current year © 2003-2026
[cyyl year=”2003″] display copyright, first year, current year Copyright 2003-2026
[cyyls year=”2003″] display copyright (+©), first year, current year © Copyright 2003-2026
[show_user_ip] display ip of current user
Useful attribute for extend shortcode functionality
Format Attribute for Year
For shortcode with year you can choose format with attribute format=””. It support “Y” (es.2026) or “y” (es.26). Default format without attribute is “Y”.
You must enter year attribute in the same format.
Example
[cyy year=”03″ format=”y”] © 03-26
[cyy year=”2003″ format=”Y”] © 2003-2026
Format Attribute for Month
For shortcode with month you can choose format with attribute format=””. It support “F” – “m” – “M” – “n”.
“F” full name (April)
“M” short name (Apr)
“m” number with leading zero (04)
“n” number without leading zero (4)
Format Attribute for Day
For shortcode with day you can choose format with attribute format=””. It support “d” – “D” – “j” – “N” – “S” – “w” – “z” – “t”.
“d” number with leading zero (05)
“j” number without leading zero (5)
“D” short day name (Mon)
“S” ordinal suffix, to put after “j” (st, nd, rd, th)
“N” day of the week, 1 for Monday to 7 for Sunday
“w” day of the week, 0 for Sunday to 6 for Saturday
“z” day of the year (0 to 365)
“t” number of days in the current month
Format Attribute for current date
For [dmy] you can use the letters of the php date function, plus space and – / . , : ; characters.
Escaped literal characters (the ones with a backslash) are not supported.
Example
[dmy format=”d/m/Y”] 12/04/2026
[dmy format=”j F Y”] 12 April 2026
[dmy format=”Y-m-d”] 2026-04-12
[dmy format=”l”] Sunday
[dmy format=”H:i”] 18:30
Month and day names come out in the language of your site.
Offset Attribute
For [y], [m] and [d] the offset is a plain number with + or -, from -1000 to 1000.
For [dmy] the number needs a unit after it: years, months, weeks, days, hours, minutes, seconds. Also “today”, “yesterday” and “tomorrow” work.
Example
[d offset=”+1″] 13 (if current day is 12)
[m offset=”+1″] May (if current month is April)
[y offset=”+1″] 2027 (if current year is 2026)
[y offset=”-3″] 2023 (if current year is 2026)
[dmy offset=”+1 year”] 12/04/2027
[dmy offset=”-2 months”] 12/02/2026
[dmy offset=”tomorrow”] 13/04/2026
Offsets follow the timezone of your site, the one in Settings > General.

延伸相關外掛

文章
Filter
Mastodon