Title: Current Year, Symbols and IP Shortcode
Author: kgmservizi
Published: <strong>2018 年 2 月 22 日</strong>
Last modified: 2026 年 4 月 12 日

---

搜尋外掛

![](https://ps.w.org/current-year-shortcode/assets/banner-772x250.png?rev=2412784)

![](https://ps.w.org/current-year-shortcode/assets/icon-256x256.png?rev=2411443)

# Current Year, Symbols and IP Shortcode

 由 [kgmservizi](https://profiles.wordpress.org/kgmservizi/) 開發

[下載](https://downloads.wordpress.org/plugin/current-year-shortcode.2.5.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/current-year-shortcode/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/current-year-shortcode/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/current-year-shortcode/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/current-year-shortcode/#developers)

 [技術支援](https://wordpress.org/support/plugin/current-year-shortcode/)

## 外掛說明

**Don’t work? Open ticket, we answer in max 48h.**

**How shortcode work:** [WordPress Codex](https://codex.wordpress.org/Shortcode)

**Full documentation and shortcode list:** [Documentation](http://uskgm.it/cysdoc)

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”.

**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″] **13** (if current day is 12) [m offset=”+1″] **May**(
if current month is April) [y offset=”+1″] **2027** (if current year is 2026) [dmy
offset=”+1 year”] **12/04/2027**

## 螢幕擷圖

 * [[
 * Year shortcode.
 * [[
 * Month shortcode.
 * [[
 * Day shortcode.
 * [[
 * Copyright shortcode.
 * [[
 * Symbols and IP shortcode.

## 安裝方式

 1. Upload the plugin files to the ‘/wp-content/plugins/’ directory, or install the
    plugin through the WordPress add plugins page directly.
 2. Activate the plugin through the ‘Plugins’ page in WordPress.
 3. Add shortcode in all position where WordPress accept it.

## 常見問題集

### What are WordPress shortcode?

**Read how WordPress shortcode work:** [WordPress Codex](https://codex.wordpress.org/Shortcode)

### What are the available shortcodes?

[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

**Full list here:** [Documentation](http://uskgm.it/cysdoc)

### What are the symbols shortcode?

[c] display copyright symbol **©**
 [t] display registered trademark symbol **®**[
tm] display unregistered trademark symbol **™** [sm] display service mark symbol**
℠**

Symbols shortcode retrieve the most common “registration” symbols.
 For more symbols
shortcode write a support ticket!

### What is the IP shortcode?

[show_user_ip] display ip of current user

With IP shortcode you can retrieve your user IP.

### How work year format attribute?

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**

### How work month format attribute?

For shortcode with month you can choose format with attribute format=””. It support“
F” – “m” – “M” – “n”.

### How work day format attribute?

For shortcode with day you can choose format with attribute format=””. It support“
D” – “d” – “j” – “N”

### How work year, month and day 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″] **13** (if current day is 12) [m offset=”+1″] **May**(
if current month is April) [y offset=”+1″] **2027** (if current year is 2026) [dmy
offset=”+1 year”] **12/04/2027**

## 使用者評論

![](https://secure.gravatar.com/avatar/134e9046117483af02f431a4c3b1547342b63e70d014a541fe56e355b5d8dba8?
s=60&d=retro&r=g)

### 󠀁[Can show year on title?](https://wordpress.org/support/topic/can-show-year-on-title/)󠁿

 [shabbirout](https://profiles.wordpress.org/shabbirout/) 2023 年 4 月 17 日 2 則
留言

will be better if can you allow Current Year for title

![](https://secure.gravatar.com/avatar/634ee7679c3ee83a7eb2f9ac62b195ea0d7ebb13d4401208d542936c19b8f6c6?
s=60&d=retro&r=g)

### 󠀁[Easy and flexible to use](https://wordpress.org/support/topic/easy-and-flexible-to-use/)󠁿

 [Asadullah Al Galib](https://profiles.wordpress.org/galibri/) 2022 年 12 月 29 
日 2 則留言

Easy to use, flexible to insert different shortcodes.

![](https://secure.gravatar.com/avatar/8487c153164b116de4be4e3ceaa25f9e5164a9616ec3f19897345e47d4ac4703?
s=60&d=retro&r=g)

### 󠀁[Ottimo plugin](https://wordpress.org/support/topic/ottimo-plugin-198/)󠁿

 [uccciucci73](https://profiles.wordpress.org/uccciucci73/) 2020 年 12 月 9 日 1
則留言

Funziona perfettamente!

![](https://secure.gravatar.com/avatar/4bbc62f98f077d5697efcd20be23b75144e847c94e8a993a0fd14340848b9a4e?
s=60&d=retro&r=g)

### 󠀁[Great! Inserts the current year with a shortcode.](https://wordpress.org/support/topic/great-inserts-the-current-year-with-a-shortcode/)󠁿

 [Caged](https://profiles.wordpress.org/caged/) 2020 年 2 月 19 日 1 則留言

This works like advertised. Thanks for coding this.

![](https://secure.gravatar.com/avatar/55893d484179aa8aa7d945560db09066c8531671d2d1ac5fbff37be6ec254f62?
s=60&d=retro&r=g)

### 󠀁[Does what it says.](https://wordpress.org/support/topic/does-what-it-says-694/)󠁿

 [marketingeimpactkevin](https://profiles.wordpress.org/marketingeimpactkevin/) 
2018 年 5 月 1 日 1 則留言

This is a straight forward little plugin that delivers on it’s promises, and I’ve
had no problems with it. Thank-you!

 [ 閱讀全部 5 則使用者評論 ](https://wordpress.org/support/plugin/current-year-shortcode/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Current Year, Symbols and IP Shortcode〉的開發相關工作。

參與者

 *   [ kgmservizi ](https://profiles.wordpress.org/kgmservizi/)

[將〈Current Year, Symbols and IP Shortcode〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/current-year-shortcode)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/current-year-shortcode/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/current-year-shortcode/)，或
透過 [RSS](https://plugins.trac.wordpress.org/log/current-year-shortcode/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/current-year-shortcode/)。

## 變更記錄

#### 2.5

 * Improved accessibility: symbols and copyright shortcodes now include aria-label
   for screen readers.
 * Security: improved input sanitization and output escaping across all shortcodes.
 * Fixed offset bug with negative values (e.g. [y offset=”-3″]).
 * Fixed loose type comparison in copyright year range shortcodes.
 * Removed duplicate validation code, consolidated into shared functions.
 * Optimized date function calls for better performance.
 * Renamed internal filter hook from wpb_get_ip to cys_get_ip (old hook still works
   with deprecation notice).
 * Fixed function prefix inconsistency (csy_ renamed to cys_).
 * Code formatting aligned to WordPress Coding Standards.
 * Error messages now include role=”alert” for accessibility.

#### 2.4.1

 * Bugfix.

#### 2.4

 * Complete code revision.

#### 2.3.5

 * 6.6 compatibility.

#### 2.3.4

 * 6.5 compatibility.

#### 2.3.3

 * 6.4 compatibility.

#### 2.3.2

 * Code revisions.

#### 2.3.1

 * Bugfix and compatibility.

#### 2.3

 * Translation with date_i18n. Added current date shortcode (dmy).

#### 2.2.3

 * Months translatable with .pot.

#### 2.1

 * Bugfix.

#### 2.0

 * Bugfix.

#### 1.9

 * Compatibility WordPress 5.8.

#### 1.8.3

 * Compatibility WordPress 5.7.

#### 1.8.2

 * Bugfix.

#### 1.8.1

 * FAQ updated.

#### 1.8

 * New shortcode for month and day, new documentation.

#### 1.7.2

 * Version compatibility update.

#### 1.7.1

 * Version compatibility update.

#### 1.7

 * Bugfix and new shortcode for retrieve IP.

#### 1.6

 * New name and compatibility update.

#### 1.5

 * Bugfix and offset for [y] shortcode.

#### 1.4

 * Added ™ and ℠ symbol.

#### 1.3

 * Compatibility revision.

#### 1.2

 * Compatibility revision.

#### 1.1

 * Bugfix.

#### 1

 * Now you can format year with format=”” attribute. You can choose “y” or “Y”. 
   More info in description.

#### 0.4

 * Now with [cyy] if current year is = attribute year, first year isn’t displayed.
   New shortcode [cyyl] for show “Copyright year-year”. New shortcode [cyyls] for
   show “©Copyright year-year”.

#### 0.3.1

 * Bugfix

#### 0.3

 * Added [cc] shortcode “Copyright”.

#### 0.2

 * Added more shortcode (copyright, trademark, copyright + year of creation + current
   year)

#### 0.1

 * Initial release

## 中繼資料

 *  版本 **2.5**
 *  最後更新 **2 天前**
 *  啟用安裝數 **10,000+**
 *  WordPress 版本需求 ** 2.5 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.8.5**
 *  PHP 版本需求 ** 5.6 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/current-year-shortcode/)
 * 標籤
 * [copyright shortcode](https://tw.wordpress.org/plugins/tags/copyright-shortcode/)
   [copyright symbol](https://tw.wordpress.org/plugins/tags/copyright-symbol/)[current year shortcode](https://tw.wordpress.org/plugins/tags/current-year-shortcode/)
 *  [進階檢視](https://tw.wordpress.org/plugins/current-year-shortcode/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  5 個 5 星使用者評論     ](https://wordpress.org/support/plugin/current-year-shortcode/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/current-year-shortcode/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/current-year-shortcode/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/current-year-shortcode/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/current-year-shortcode/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/current-year-shortcode/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/current-year-shortcode/reviews/)

## 參與者

 *   [ kgmservizi ](https://profiles.wordpress.org/kgmservizi/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/current-year-shortcode/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://kgmservizi.com)