hello world!
23 Febbraio 2018

Current Year and Symbols Shortcode

How shortcode work -> WordPress CODEX (documentation)

Pay attention

Shortcode don't work in all WordPress position!
For any problem write a comment here or in WordPress directory support forum.

Year

[y]
2024

With format:

[y format="y"]
24
[y format="Y"]
2024

With offset + or - also in combination with format:

[y offset="+5"]
2029
[y offset="+5"]
2029
[y format="y" offset="-5"]
19

Month

[m]
Giugno

With month format:

[m format="F"]
Giugno
[m format="m"]
06
[m format="M"]
Giu
[m format="n"]
6

With offset + or - also in combination with format:

[m offset="+5"]
Novembre
[m format="F" offset="+5"]
Novembre
[m format="m" offset="-5"]
01
[m format="M" offset="+5"]
Nov
[m format="n" offset="-5"]
1

Day

[d]
13

With day format:

[d format="d"]
13
[d format="D"]
Gio
[d format="j"]
13
[d format="N"]
4
[d format="S"]
th
[d format="w"]
4
[d format="z"]
164
[d format="t"]
30

With offset + or - also in combination with format:

[d offset="+5"]
18
[d format="d" offset="+5"]
18
[d format="D" offset="-5"]
Sab
[d format="j" offset="+5"]
18
[d format="N" offset="-5"]
6
[d format="S" offset="+5"]
th
[d format="w" offset="-5"]
6
[d format="z" offset="+5"]
169
[d format="t" offset="-5"]
30

Current Date

Current date with custom format and offset.

[dmy]
13/06/2024

With offset:

[dmy offset="+1year"]
13/06/2025
[dmy offset="+1day"]
14/06/2024
[dmy format="d F Y"]
13 Giugno 2024
[dmy offset="+1year" format="d F Y"]
13 Giugno 2025

©2024 - copyright symbol and current year

[cy]
©2024

With year format:

[cy format="y"]
©24
[cy format="Y"]
©2024

©2003-2024 - copyright symbol with first copyright year - current year

[cyy year="2003" format="Y"]
©2003-2024
[cyy year="03" format="y"]
©03-24

Copyright 2003-2024 - copyright text with first copyright year - current year

[cyyl year="2003" format="Y"]
Copyright 2003-2024
[cyyl year="03" format="y"]
Copyright 03-24

©Copyright 2003-2024 - copyright symbol + text with first copyright year - current year

[cyyls year="2003" format="Y"]
Copyright 03-24
[cyyls year="03" format="y"]
Copyright 03-24

© symbol

[c]
©

Copyright text

[cc]
Copyright

® symbol

[t]
®

™ symbol

[tm]

℠ symbol

[sm]

User IP

[show_user_ip]
3.236.142.143

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
©03-24 ©03-19
©2003-2024 ©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 13 you can add offset with attribute offset="". It support + or -.
For month shortcode Giugno you can add offset with attribute offset="". It support + or -.
For year shortcode 2024 you can add offset with attribute offset="". It support + or -.
For current date shortcode 13/06/2024 you can add offset with attribute offset="". It support + or - in standard php date format, for ex. + 1 year or - 1 day.

Example
14 2023
Luglio 2 (if current month is January)
2025 2 (if current day is 1)
13/06/2025 01/01/2023

Potete scaricare il plugin direttamente dalla directory di WordPress.