BACK TO DIRECTORY

Current Year Shortcodes

by Lukas

5.0
(3 ratings)

Current Year Shortcodes lets you insert the current year, month and day anywhere in your WordPress site with a simple shortcode.

Use the shortcode [Y] in any post, page or widget to display the current year.

How it works

[Y] – inserts the current year with four digits e.g. 2023
[y] – inserts the current year with two digits e.g. 23
[m] – inserts the current month with two digits e.g. 01
[n] – inserts the current month without leading zeros e.g. 1
[F] – inserts the current month as a text e.g. January
[M] – inserts the current month with three letters e.g. Jan
[d] – inserts the current day with two digits e.g. 06
[j] – inserts the current day without leading zeros e.g. 6
[D] – inserts the current day with three letters e.g. Mon
[l] – inserts the current day as a text e.g. Monday

Plugin Details

Active Installs
1K+
Total Downloads
6,870
Version
0.3
Requires WP
4.6
Requires PHP
Tested Up To
6.4.10
Added
2022-12-20
Last Updated
2024-01-03 9:54am GMT

Ratings

5
3
4
0
3
0
2
0
1
0