{"id":68192,"date":"2017-05-07T21:49:53","date_gmt":"2017-05-07T21:49:53","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/shortcode-for-current-date\/"},"modified":"2025-12-22T19:36:14","modified_gmt":"2025-12-22T19:36:14","slug":"shortcode-for-current-date","status":"publish","type":"plugin","link":"https:\/\/szl.wordpress.org\/plugins\/shortcode-for-current-date\/","author":14743424,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.2.2","stable_tag":"2.2.2","tested":"6.9.4","requires":"5.0","requires_php":"","requires_plugins":null,"header_name":"Shortcode For Current Date","header_author":"Imtiaz Rayhan","header_description":"Insert current Date, Month or Year anywhere with a simple shortcode.","assets_banners_color":"6e2eed","last_updated":"2025-12-22 19:36:14","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.me\/imtiazrayhan\/","header_plugin_uri":"http:\/\/wordpress.org\/plugins\/shortcode-for-current-date","header_author_uri":"http:\/\/dotcamp.com\/","rating":5,"author_block_rating":0,"active_installs":10000,"downloads":252498,"num_ratings":115,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0":{"tag":"1.0","author":"imtiazrayhan","date":"2017-05-07 21:53:30"},"1.1":{"tag":"1.1","author":"imtiazrayhan","date":"2017-05-26 16:45:48"},"1.2":{"tag":"1.2","author":"imtiazrayhan","date":"2017-06-28 04:41:05"},"1.2.1":{"tag":"1.2.1","author":"imtiazrayhan","date":"2017-06-28 13:22:02"},"1.2.2":{"tag":"1.2.2","author":"imtiazrayhan","date":"2017-11-09 03:22:03"},"1.2.3":{"tag":"1.2.3","author":"imtiazrayhan","date":"2018-01-30 00:02:12"},"1.2.4":{"tag":"1.2.4","author":"imtiazrayhan","date":"2018-08-14 03:43:40"},"1.2.5":{"tag":"1.2.5","author":"imtiazrayhan","date":"2018-09-11 20:15:41"},"2.0.0":{"tag":"2.0.0","author":"imtiazrayhan","date":"2018-12-03 22:05:03"},"2.0.1":{"tag":"2.0.1","author":"imtiazrayhan","date":"2018-12-05 06:59:35"},"2.0.2":{"tag":"2.0.2","author":"imtiazrayhan","date":"2018-12-31 18:54:09"},"2.0.3":{"tag":"2.0.3","author":"imtiazrayhan","date":"2019-01-21 00:21:47"},"2.0.4":{"tag":"2.0.4","author":"imtiazrayhan","date":"2019-01-23 12:25:12"},"2.0.5":{"tag":"2.0.5","author":"imtiazrayhan","date":"2019-03-25 02:10:59"},"2.0.6":{"tag":"2.0.6","author":"imtiazrayhan","date":"2019-07-16 03:00:11"},"2.0.7":{"tag":"2.0.7","author":"imtiazrayhan","date":"2019-09-21 04:36:48"},"2.0.8":{"tag":"2.0.8","author":"imtiazrayhan","date":"2020-04-02 00:10:18"},"2.1.0":{"tag":"2.1.0","author":"imtiazrayhan","date":"2020-05-09 03:56:36"},"2.1.1":{"tag":"2.1.1","author":"imtiazrayhan","date":"2020-05-09 12:14:38"},"2.1.2":{"tag":"2.1.2","author":"imtiazrayhan","date":"2020-07-21 00:03:57"},"2.1.3":{"tag":"2.1.3","author":"imtiazrayhan","date":"2020-11-23 01:27:04"},"2.1.4":{"tag":"2.1.4","author":"imtiazrayhan","date":"2021-02-14 14:02:31"},"2.1.5":{"tag":"2.1.5","author":"imtiazrayhan","date":"2021-07-06 05:27:26"},"2.1.6":{"tag":"2.1.6","author":"imtiazrayhan","date":"2022-04-04 09:28:18"},"2.1.7":{"tag":"2.1.7","author":"imtiazrayhan","date":"2022-10-31 14:45:38"},"2.1.9":{"tag":"2.1.9","author":"imtiazrayhan","date":"2023-04-12 08:42:31"},"2.2.0":{"tag":"2.2.0","author":"imtiazrayhan","date":"2025-04-06 21:06:02"},"2.2.1":{"tag":"2.2.1","author":"imtiazrayhan","date":"2025-04-06 21:14:59"},"2.2.2":{"tag":"2.2.2","author":"imtiazrayhan","date":"2025-12-22 19:36:14"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":115},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2898050,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2898049,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2898049,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2898050,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":{"shortcode-for-current-date\/block":{"name":"shortcode-for-current-date\/block","title":"Current Date"}},"tagged_versions":["1.0","1.1","1.2","1.2.1","1.2.2","1.2.3","1.2.4","1.2.5","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.1.0","2.1.1","2.1.2","2.1.3","2.1.4","2.1.5","2.1.6","2.1.7","2.1.9","2.2.0","2.2.1","2.2.2"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[22813,16360,80,523],"plugin_category":[43],"plugin_contributors":[132472,172605,165034,152482,165033,165037,175954],"plugin_business_model":[],"class_list":["post-68192","plugin","type-plugin","status-publish","hentry","plugin_tags-current-date","plugin_tags-month","plugin_tags-shortcode","plugin_tags-year","plugin_category-customization","plugin_contributors-imtiazrayhan","plugin_contributors-istiakrayhan","plugin_contributors-ultimateblocks","plugin_contributors-un_rick","plugin_contributors-wpcdplugin","plugin_contributors-wpleaders1","plugin_contributors-wptb","plugin_committers-imtiazrayhan"],"banners":{"banner":"https:\/\/ps.w.org\/shortcode-for-current-date\/assets\/banner-772x250.png?rev=2898050","banner_2x":"https:\/\/ps.w.org\/shortcode-for-current-date\/assets\/banner-1544x500.png?rev=2898049","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/shortcode-for-current-date\/assets\/icon-128x128.png?rev=2898050","icon_2x":"https:\/\/ps.w.org\/shortcode-for-current-date\/assets\/icon-256x256.png?rev=2898049","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p><strong>Shortcode for Current Date<\/strong> enables you to put current date, current month or current year anywhere in your WordPress site with a simple shortcode.<\/p>\n\n<p>Just use the shortcode <strong>[current_date]<\/strong> and when the post or page is displayed, <strong>[current_date]<\/strong> will be replaced by the current date. And the date will be translated according to your site settings.<\/p>\n\n<p>By default it will show a date like this: 7th May 2017<\/p>\n\n<p>But you can customize it to your needs. To do that, you'll need to pass the date format using an attribute with the shortcode.\nHere are some examples:<\/p>\n\n<p><strong>[current_date format='d\/m\/Y']<\/strong> will show the date like this: <strong>07\/05\/2017<\/strong>\n<strong>[current_date format='F d, Y']<\/strong> will show the date like this: <strong>May 07, 2017<\/strong><\/p>\n\n<p>If you don't understand how this formatting works, that's totally okay.<\/p>\n\n<h3>Gutenberg Block<\/h3>\n\n<p>If you are using Gutenberg editor, there's a Current Date block you can use to insert the current date in your posts\/pages.<\/p>\n\n<p>If you use the block, you will not have to use the shortcode.<\/p>\n\n<p>When you insert the block, on the right sidebar under block options you will see a field to put the format for the date.<\/p>\n\n<h3>Styling<\/h3>\n\n<p>You can use 'size' and 'color' attributes to style the date.<\/p>\n\n<p>For example, [current_date format='d\/m\/Y' size='20px' color='#FF0000']<\/p>\n\n<h4>What's Next<\/h4>\n\n<p>If you like this plugin, then consider checking out our other plugins:<\/p>\n\n<ul>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/wp-table-builder\/\">WP Table Builder<\/a> - Drag and Drop Table Builder Plugin. Build Responsive Tables insanely easily.<\/li>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/ultimate-blocks\/\" title=\"Ultimate Blocks\">Ultimate Blocks<\/a> - Create Better Content with Gutenberg + Ultimate Blocks. Essential Collection of Blocks for Bloggers and Affiliate Marketers.<\/li>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/wp-coupons-and-deals\/\" title=\"WP Coupons and Deals\">WP Coupons and Deals<\/a> - Make More Money from Your Affiliate Coupons and Deals.<\/li>\n<\/ul>\n\n<p>Visit <a href=\"http:\/\/www.wpleaders.com\/\" rel=\"friend\" title=\"WPLeaders\">WPLeaders<\/a> to learn more about WordPress, WordPress themes and plugins.<\/p>\n\n<!--section=installation-->\n<p>This is one way you can install the plugin:<\/p>\n\n<ol>\n<li>Download the plugin from WordPress plugin repository and upload the zip file in 'Add New' under 'Plugins'.<\/li>\n<li>Activate the plugin.<\/li>\n<\/ol>\n\n<p>Another way :<\/p>\n\n<ol>\n<li>From WordPress dashboard, go to Add New under Plugins section.<\/li>\n<li>Search for  'Shortcode for Current Date'<\/li>\n<li>From search results, click on  'Shortcode for Current Date'.<\/li>\n<li>Click on Install button and activate the plugin.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>2.2.2<\/h4>\n\n<ul>\n<li>Tested with WordPress 6.9<\/li>\n<\/ul>\n\n<h4>2.2.0<\/h4>\n\n<ul>\n<li>Tested with WordPress 6.7<\/li>\n<\/ul>\n\n<h4>2.1.9<\/h4>\n\n<ul>\n<li>WordPress 6.2 compatible.<\/li>\n<\/ul>\n\n<h4>2.1.8<\/h4>\n\n<ul>\n<li>WordPress 6.1 compatible.<\/li>\n<\/ul>\n\n<h4>2.1.7<\/h4>\n\n<ul>\n<li>Security updates.<\/li>\n<\/ul>\n\n<h4>2.1.5<\/h4>\n\n<ul>\n<li>Security issue fix.<\/li>\n<\/ul>\n\n<h4>2.1.4<\/h4>\n\n<ul>\n<li>FIX: Style.css not found issue.<\/li>\n<\/ul>\n\n<h4>2.1.3<\/h4>\n\n<ul>\n<li>FIX: Dependency missing issue.<\/li>\n<li>FIX: Error when Gutenberg is not available.<\/li>\n<li>FIX: Deprecated PHP notice.<\/li>\n<\/ul>\n\n<h4>2.1.2<\/h4>\n\n<ul>\n<li>ADD: Gutenberg Block for Adding Current Date.<\/li>\n<\/ul>\n\n<h4>2.1.1<\/h4>\n\n<ul>\n<li>FIX: Preserving old shortcode output.<\/li>\n<\/ul>\n\n<h4>2.1.0<\/h4>\n\n<ul>\n<li>ADD: Option to Control Font Size.<\/li>\n<li>ADD: Option to Control Font Color.<\/li>\n<li>ADD: CSS Class to Control Style Globally.<\/li>\n<\/ul>\n\n<h4>2.0.8<\/h4>\n\n<ul>\n<li>Tested with WordPress 5.4.<\/li>\n<\/ul>\n\n<h4>2.0.7<\/h4>\n\n<ul>\n<li>Tested with latest WordPress version.<\/li>\n<li>Removed admin notice about other plugin.<\/li>\n<\/ul>\n\n<h4>2.0.6<\/h4>\n\n<ul>\n<li>Tested with WordPress 5.2.<\/li>\n<\/ul>\n\n<h4>2.0.5<\/h4>\n\n<ul>\n<li>Tested with WordPress 5.1.<\/li>\n<\/ul>\n\n<h4>2.0.4<\/h4>\n\n<ul>\n<li>Tested with WordPress 5.0.3.<\/li>\n<li>Updated some links.<\/li>\n<\/ul>\n\n<h4>2.0.3<\/h4>\n\n<ul>\n<li>Used date_i18n() function to make the date translated according to site settings. Thanks to @themezee<\/li>\n<\/ul>\n\n<h4>2.0.1<\/h4>\n\n<ul>\n<li>Tested with WordPress 5.0.<\/li>\n<li>Settings and Welcome page Changes.<\/li>\n<\/ul>\n\n<h4>2.0.0<\/h4>\n\n<ul>\n<li>Tested with WordPress 5.0.<\/li>\n<\/ul>\n\n<h4>1.2.5<\/h4>\n\n<ul>\n<li>Fix - Day Number of the Year bug.<\/li>\n<\/ul>\n\n<h4>1.2.4<\/h4>\n\n<ul>\n<li>Add - Shortcode execution in Post Title.<\/li>\n<\/ul>\n\n<h4>1.2.3<\/h4>\n\n<ul>\n<li>Fixed a bug.<\/li>\n<li>Added WP current_time funtion instead of date function to retrieve WP time instead of server time. Thanks to Rick Carter.<\/li>\n<\/ul>\n\n<h4>1.2.2<\/h4>\n\n<ul>\n<li>Tested with WordPress 4.9<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Fixed a bug.<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Added a Menu item to quickly access the date formats.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Added a welcome page.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial Release<\/li>\n<\/ul>","raw_excerpt":"Insert current Date, Month or Year anywhere in your WordPress site with a simple shortcode.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/68192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=68192"}],"author":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/imtiazrayhan"}],"wp:attachment":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=68192"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=68192"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=68192"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=68192"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=68192"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=68192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}