Skip to main content
Agency Program Hosting from 10% off. A dedicated account manager. Priority support. Built for growing agencies. Hosting from 10% off, a dedicated account manager and priority support for growing agencies. Speak to the team Join free
Current Year, Symbols and IP Shortcode icon

Current Year, Symbols and IP Shortcode

v2.7
by kgmservizi · 5.0 (5 reviews)

Useful shortcode for WordPress. Current year, copyright, symbols and user IP with shortcode.

10K+ active installs Updated Nov 06, 2026 Tested to 7.1.5 Requires PHP 5.6
Try Demo Download
Pre-installed Ready in ~10s No card
Current Year, Symbols and IP Shortcode

About Current Year, Symbols and IP Shortcode

This is a shortcode documentation for WordPress that allows you to display the current year, month, day, date, copyright symbols, user IP, and more. You can also customize the format and add offsets to the shortcode. If you have any issues, you can open a ticket and they will respond within 48 hours.

Screenshots

Current Year, Symbols and IP Shortcode screenshot
Current Year, Symbols and IP Shortcode screenshot
Current Year, Symbols and IP Shortcode screenshot
Current Year, Symbols and IP Shortcode screenshot
Current Year, Symbols and IP Shortcode screenshot

Frequently asked questions

What does this plugin do?
This plugin provides shortcodes to display the current year, month, day, copyright symbols, and the user's IP address on your WordPress site.
How do I display the current year?
You can use the shortcode [y] to display the current year. For example, [y] would display 2020.
Can I display a copyright notice with a range of years?
Yes, you can use shortcodes like [cyy year="2003"] to display a copyright symbol with a starting year and the current year, such as ©2003-2019.
How do I display the user's IP address?
The shortcode [show_user_ip] will display the IP address of the current user.
What if the plugin doesn't work?
If the plugin does not work, you can open a ticket, and the author will respond within a maximum of 48 hours.

Changelog

2.7

  • Every text the shortcodes print is now translatable: error messages, “Copyright” and the screen reader labels of the symbols.
  • Screen readers: [c], [t], [tm], [sm], [cy] and [cyy] now carry role=”img”, so their label is read reliably.
  • Tested with WordPress 7.1.

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

Try other plugins