Shortcode for Current Date
Description
Shortcode for Current Date enables you to put current date, current month or current year anywhere in your WordPress site with a simple shortcode.
Just use the shortcode [current_date] and when the post or page is displayed, [current_date] will be replaced by the current date. And the date will be translated according to your site settings.
By default it will show a date like this: 7th May 2017. But you can customize it to your needs. To do that, you will need to pass the date format using an attribute with the shortcode.
Here are some examples: [current_date format='d/m/Y'] will show the date like this: 07/05/2017. [current_date format='F d, Y'] will show the date like this: May 07, 2017.
If you don't understand how this formatting works, that's totally okay.
If you are using Gutenberg editor, there's a Current Date block you can use to insert the current date in your posts/pages. If you use the block, you will not have to use the shortcode.
When you insert the block, on the right sidebar under block options you will see a field to put the format for the date.
You can use 'size' and 'color' attributes to style the date. For example, [current_date format='d/m/Y' size='20px' color='#FF0000'].
If you like this plugin, then consider checking out our other plugins: WP Table Builder, Ultimate Blocks, and WP Coupons and Deals.
Visit WPLeaders to learn more about WordPress, WordPress themes and plugins.
Other Notable Features
Here are a few other notable features of this free Shortcode for Current Date plugin.
Contributors and developers
“Shortcode for Current Date” is open source software. The following people have contributed to this plugin.
WPS
6.66
Average
Ratings
5 out of 5 | 115Version
2.2.2Last updated
3 months agoActive installations
10,000+WordPress version
6.9.4 or higherPHP version
or higherLanguages
0Tags
Current Date,Month,Shortcode,YearOther plugins you might like
Classic Editor
By WordPress.org
WPS
7.68
Very Good
1.2k+reviews
active installation
Tested with
6.9.4Yoast Duplicate Post
By Yoast
WPS
7.82
Very Good
528+reviews
active installation
Tested with
6.9.4Advanced Editor Tools
By Andrew Ozz
WPS
7.51
Very Good
353+reviews
active installation
Tested with
6.9.4Advanced Custom Fields (ACF®)
By WP Engine
WPS
7.52
Very Good
1.4k+reviews
active installation
Tested with
6.9.4Custom Post Type UI
By webdevstudios
WPS
7.42
Very Good
273+reviews
active installation
Tested with
6.9.4TablePress – Tables in WordPress made easy
By Tobias Bäthge
WPS
8.19
Very Good
4.6k+reviews
active installation
Tested with
7.0