前言介紹
- 這款 WordPress 外掛「Current Year, Symbols and IP Shortcode」是 2018-02-21 上架。
- 目前有 10000 個安裝啟用數。
- 上一次更新是 2024-11-13,距離現在已有 171 天。
- 外掛最低要求 WordPress 2.5 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
- 有 5 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
year | copyright | shortcode | current year | current year shortcode |
內容簡介
如果有問題,請發開票,我們最多在48小時內回覆。
簡碼的使用方式: WordPress Codex
完整文件和簡碼列表: 文件
當前年份、版權、符號和使用者 IP 使用簡碼。
[y] 會顯示目前年份 2020
[m] 會顯示目前月份 October
[d] 會顯示目前日期 25
[dmy] 會顯示目前日期 01/01/2023
[c] 會顯示版權符號 ©
[t] 會顯示註冊商標符號 ®
[tm] 會顯示未註冊商標符號 ™
[sm] 會顯示服務標記符號 ℠
[cc] 會顯示版權聲明
[cy] 會顯示版權符號和目前年份 ©2019
[cyy year=”2003″] 會顯示版權符號、首年和目前年份 ©2003-2019
[cyyl year=”2003″] 會顯示版權聲明、首年和目前年份 Copyright 2003-2019
[cyyls year=”2003″] 會顯示版權符號 (+©)、首年和目前年份 ©Copyright 2003-2019
[show_user_ip] 會顯示目前使用者 IP
擴展簡碼功能的有用屬性
年份格式屬性
對於具有年份的簡碼,您可以使用 format=”” 屬性選擇格式。它支持 “Y” (例如 2019) 或 “y” (例如 19)。預設格式為 “Y”,無需使用屬性。
您必須以相同格式輸入年份屬性。
範例
[cyy year=”03″ format=”y”] ©03-19
[cyy year=”2003″ format=”Y”] ©2003-2019
月份格式屬性
對於具有月份的簡碼,您可以使用 format=”” 屬性選擇格式。它支持 “F” – “m” – “M” – “n”。
日期格式屬性
對於具有日期的簡碼,您可以使用 format=”” 屬性選擇格式。它支持 “D” – “d” – “j” – “N”。
目前日期格式屬性
所有 php 日期函數屬性。
偏移量屬性
對於日簡碼 [d],您可以使用 offset=”” 屬性添加偏移量。它支持 + 或 -。
對於月簡碼 [m],您可以使用 offset=”” 屬性添加偏移量。它支持 + 或 -。
對於年簡碼 [y],您可以使用 offset=”” 屬性添加偏移量。它支持 + 或 -。
對於目前日期簡碼 [dmy],您可以使用 offset=”” 屬性添加偏移量。它支持 + 或 –,使用標準 php 日期格式,例如 + 1 年或 – 1 天。
範例
[d offset=”+1″] 2023
[m offset=”+1″] 2 (如果目前月份是一月)
[y offset=”+1″] 2 (如果目前日期是一號)
[dmy offset=”+ 1 year”] 01/01/2023
原文外掛簡介
Don’t work? Open ticket, we answer in max 48h.
How shortcode work: WordPress Codex
Full documentation and shortcode list: Documentation
Current year, copyright, symbols and user IP with shortcode.
[y] display current year 2020
[m] display current month October
[d] display current day 25
[dmy] display current date 01/01/2023
[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 ©2019
[cyy year=”2003″] display symbol of copyright, first year, current year ©2003-2019
[cyyl year=”2003″] display copyright, first year, current year Copyright 2003-2019
[cyyls year=”2003″] display copyright (+©), first year, current year ©Copyright 2003-2019
[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.2019) or “y” (es.19). Default format without attribute is “Y”.
You must enter year attribute in the same format.
Example
[cyy year=”03″ format=”y”] ©03-19
[cyy year=”2003″ format=”Y”] ©2003-2019
Format Attribute for Month
For shortcode with month you can choose format with attribute format=””. It support “F” – “m” – “M” – “n”.
Format Attribute for Day
For shortcode with day you can choose format with attribute format=””. It support “D” – “d” – “j” – “N”
Format Attribute for current date
All php date function attributes.
Offset Attribute
For day shortcode [d] you can add offset with attribute offset=””. It support + or -.
For month shortcode [m] you can add offset with attribute offset=””. It support + or -.
For year shortcode [y] you can add offset with attribute offset=””. It support + or -.
For current date shortcode [dmy] you can add offset with attribute offset=””. It support + or – in standard php date format, for ex. + 1 year or – 1 day.
Example
[d offset=”+1″] 2023
[m offset=”+1″] 2 (if current month is January)
[y offset=”+1″] 2 (if current day is 1)
[dmy offset=”+ 1 year”] 01/01/2023
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Current Year, Symbols and IP Shortcode」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1 | 0.1 | 0.2 | 0.3 | 0.4 | 1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6 | 1.7 | 1.8 | 1.9 | 2.0 | 2.1 | 2.3 | 0.3.1 | 1.7.1 | 1.7.2 | 1.8.1 | 1.8.2 | 1.8.3 | 2.2.3 | 2.3.1 | 2.3.2 | 2.3.3 | 2.3.4 | 2.3.5 | trunk |
延伸相關外掛(你可能也想知道)
Current Year, Month, Date & Time WordPress Shortcodes – Date Updater 》- Date Updater 是一個強大的 WordPress 外掛,可以輕鬆地將動態月份和年份的資訊整合到您的文章、頁面和小工具中。, - 使用 Date Updater,您可以使用簡單且...。
Current Year Date Shortcode 》總結:Curent Year Date 是一個 WordPress 外掛,讓您透過簡單的短碼在 WordPress 網站的任何地方插入當前的年份、月份和日期。, , 1. 如何在 WordPress 網站...。
Current Year Shortcode (for Post Titles) 》簡碼 [wcyear] 可顯示當前年份,您可以將此簡碼放置在 WordPress 網站的任何位置。, 重要提示:如果您想將此簡碼放置在文章和頁面標題中,請前往外掛設置中檢...。
Current Year, Month & Copyright Shortcode 》使用這個「目前年份、月份及版權簡碼外掛程式」,使用者可以輕鬆地在文章或頁面的標題或主體中加入目前年份、月份和版權符號。, 選項, , [y] / [cy] : 使...。