Title: Current Year, Symbols and IP Shortcode
Author: kgmservizi
Published: <strong>Февраль 22, 2018</strong>
Last modified: Август 13, 2026

---

Search plugins

![](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

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

[Download](https://downloads.wordpress.org/plugin/current-year-shortcode.2.6.zip)

 * [Details](https://os.wordpress.org/plugins/current-year-shortcode/#description)
 * [Reviews](https://os.wordpress.org/plugins/current-year-shortcode/#reviews)
 *  [Installation](https://os.wordpress.org/plugins/current-year-shortcode/#installation)
 * [Development](https://os.wordpress.org/plugins/current-year-shortcode/#developers)

 [Support](https://wordpress.org/support/plugin/current-year-shortcode/)

## Description

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

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

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.

## Screenshots

[⌊Year shortcode.⌉⌊Year shortcode.⌉[

Year shortcode.

[⌊Month shortcode.⌉⌊Month shortcode.⌉[

Month shortcode.

[⌊Day shortcode.⌉⌊Day shortcode.⌉[

Day shortcode.

[⌊Copyright shortcode.⌉⌊Copyright shortcode.⌉[

Copyright shortcode.

[⌊Symbols and IP shortcode.⌉⌊Symbols and IP shortcode.⌉[

Symbols and IP shortcode.

## Installation

 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.

## FAQ

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

The complete list of format letters and offsets is in the Description tab.

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

### I use a CDN and [show_user_ip] shows the wrong address

The shortcode reads a forwarded header only when the request reaches your site through
a proxy it recognises. Local reverse proxies and Cloudflare are already in the list.
For any other CDN, add its ranges:

    ```
    add_filter( 'cys_trusted_proxies', function ( $proxies ) {
        $proxies[] = '203.0.113.0/24';
        return $proxies;
    } );
    ```

Ask your host or your CDN which ranges to use. Getting it wrong breaks nothing, 
the shortcode simply falls back to the address of whoever opened the connection.

### Why is the page with [show_user_ip] not cached?

Because that shortcode prints something different for every visitor, so the page
has to be built on each request. If you also cache at the edge, exclude the page
there as well.

### 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” – S” – w” – z” – t”. The full list with the meaning of each letter
is in the Description tab.

### How work year, month and day 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. Offsets follow the timezone
of your site, the one in Settings > General.

**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** [dmy offset=”tomorrow”] **13/04/2026**

## Reviews

![](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/) Апрель 17, 2023 2 replies

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/) Декабрь 29, 2022 
2 replies

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/) Декабрь 9, 2020 1 reply

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/) Февраль 19, 2020 1 reply

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/) 
Май 1, 2018 1 reply

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

 [ Read all 5 reviews ](https://wordpress.org/support/plugin/current-year-shortcode/reviews/)

## Contributors & Developers

“Current Year, Symbols and IP Shortcode” is open source software. The following 
people have contributed to this plugin.

Contributors

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

[Translate “Current Year, Symbols and IP Shortcode” into your language.](https://translate.wordpress.org/projects/wp-plugins/current-year-shortcode)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/current-year-shortcode/),
check out the [SVN repository](https://plugins.svn.wordpress.org/current-year-shortcode/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/current-year-shortcode/)
by [RSS](https://plugins.trac.wordpress.org/log/current-year-shortcode/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.6

 * Offsets now follow the timezone set in your WordPress settings, on dates and 
   on times.
 * More consistent handling of the year format: [cyy] and friends with format=”y”
   show a single year when there is nothing to range, same as format=”Y” already
   did.
 * Stricter check on the year attribute.
 * [show_user_ip] reads forwarded headers only when the request comes through a 
   known proxy. Local reverse proxies and Cloudflare work out of the box, other 
   CDNs can be added with a filter, see the FAQ.
 * Pages using [show_user_ip] are kept out of full page caching.
 * Code revision on the date and copyright shortcodes.
 * Tested with WordPress 7.0.

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

## Meta

 *  Version **2.6**
 *  Last updated **2 боны ago**
 *  Active installations **10,000+**
 *  WordPress version ** 2.5 or higher **
 *  Tested up to **7.0.4**
 *  PHP version ** 5.6 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/current-year-shortcode/)
 * Tags
 * [copyright shortcode](https://os.wordpress.org/plugins/tags/copyright-shortcode/)
   [copyright symbol](https://os.wordpress.org/plugins/tags/copyright-symbol/)[current year shortcode](https://os.wordpress.org/plugins/tags/current-year-shortcode/)
 *  [Advanced View](https://os.wordpress.org/plugins/current-year-shortcode/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  5 5-star reviews     ](https://wordpress.org/support/plugin/current-year-shortcode/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/current-year-shortcode/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/current-year-shortcode/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/current-year-shortcode/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/current-year-shortcode/reviews/?filter=1)

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

[See all reviews](https://wordpress.org/support/plugin/current-year-shortcode/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/current-year-shortcode/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://kgmservizi.com)