{"id":81922,"date":"2018-02-22T08:32:17","date_gmt":"2018-02-22T08:32:17","guid":{"rendered":"https:\/\/it.wordpress.org\/plugins\/current-year-shortcode\/"},"modified":"2025-11-28T09:24:47","modified_gmt":"2025-11-28T09:24:47","slug":"current-year-shortcode","status":"publish","type":"plugin","link":"https:\/\/lmo.wordpress.org\/plugins\/current-year-shortcode\/","author":15865451,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.4.1","stable_tag":"2.4.1","tested":"6.8.5","requires":"2.5","requires_php":"5.6","requires_plugins":null,"header_name":"Current Year, Symbols and IP Shortcode","header_author":"KGM Servizi","header_description":"Get current year with shortcode.","assets_banners_color":"e9000f","last_updated":"2025-11-28 09:24:47","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/kgmservizi.com","header_plugin_uri":"","header_author_uri":"https:\/\/kgmservizi.com","rating":5,"author_block_rating":0,"active_installs":10000,"downloads":125360,"num_ratings":5,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"2.3.5":{"tag":"2.3.5","author":"kgmservizi","date":"2024-11-13 12:20:17"},"2.4":{"tag":"2.4","author":"kgmservizi","date":"2025-09-09 21:32:47"},"2.4.1":{"tag":"2.4.1","author":"kgmservizi","date":"2025-11-28 09:24:47"}},"upgrade_notice":{"2.4.1":"<p>Bugfix.<\/p>","2.4":"<p>Complete code revision.<\/p>","2.3.5":"<p>6.6 compatibility.<\/p>","2.3.4":"<p>6.5 compatibility.<\/p>","2.3.3":"<p>6.4 compatibility.<\/p>","2.3.2":"<p>Code revisions.<\/p>","2.3.1":"<p>Bugfix and compatibility.<\/p>","2.3":"<p>Translation with date_i18n. Added current date shortcode (dmy).<\/p>","2.2.3":"<p>Months translatable with .pot.<\/p>","2.1":"<p>Bugfix.<\/p>","2.0":"<p>Bugfix.<\/p>","1.9":"<p>Compatibility WordPress 5.8.<\/p>","1.8.3":"<p>Compatibility WordPress 5.7.<\/p>","1.8.2":"<p>Bugfix.<\/p>","1.8.1":"<p>FAQ updated.<\/p>","1.8":"<p>New shortcode for month and day, new documentation.<\/p>","1.7.2":"<p>Version compatibility update.<\/p>","1.7.1":"<p>Version compatibility update.<\/p>","1.7":"<p>Bugfix and new shortcode for retrieve IP.<\/p>","1.6":"<p>New name and compatibility update.<\/p>","1.5":"<p>Bugfix and offset for [y] shortcode.<\/p>","1.4":"<p>Added \u2122 and \u2120 symbol.<\/p>","1.3":"<p>Compatibility revision.<\/p>","1.2":"<p>Compatibility revision.<\/p>","1.1":"<p>Bugfix.<\/p>","1":"<p>Now you can format year with format=&quot;&quot; attribute. You can choose &quot;y&quot; or &quot;Y&quot;. More info in description.<\/p>","0.4":"<p>Now with [cyy] if current year is = attribute year, first year isn&#039;t displayed. New shortcode [cyyl] for show &quot;Copyright year-year&quot;<\/p>","0.3.1":"<p>Bugfix<\/p>","0.3":"<p>Added [cc] shortcode &quot;Copyright&quot;.<\/p>","0.2":"<p>Added more shortcode (copyright, trademark, copyright + year of creation + current year)<\/p>","0.1":"<p>Initial release.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":5},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2411443,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2411443,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2412784,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2412784,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["2.3.5","2.4","2.4.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2410468,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2410468,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2410468,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":2410468,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":2410468,"resolution":"5","location":"assets","locale":""}},"screenshots":{"1":"Year shortcode.","2":"Month shortcode.","3":"Day shortcode.","4":"Copyright shortcode.","5":"Symbols and IP shortcode."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[25105,171954,157468,251317,251316],"plugin_category":[43],"plugin_contributors":[151208],"plugin_business_model":[],"class_list":["post-81922","plugin","type-plugin","status-publish","hentry","plugin_tags-copyright-shortcode","plugin_tags-copyright-symbol","plugin_tags-current-year-shortcode","plugin_tags-symbol-shortcode","plugin_tags-trademark-shortcode","plugin_category-customization","plugin_contributors-kgmservizi","plugin_committers-kgmservizi"],"banners":{"banner":"https:\/\/ps.w.org\/current-year-shortcode\/assets\/banner-772x250.png?rev=2412784","banner_2x":"https:\/\/ps.w.org\/current-year-shortcode\/assets\/banner-1544x500.png?rev=2412784","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/current-year-shortcode\/assets\/icon-128x128.png?rev=2411443","icon_2x":"https:\/\/ps.w.org\/current-year-shortcode\/assets\/icon-256x256.png?rev=2411443","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/current-year-shortcode\/assets\/screenshot-1.png?rev=2410468","caption":"Year shortcode."},{"src":"https:\/\/ps.w.org\/current-year-shortcode\/assets\/screenshot-2.png?rev=2410468","caption":"Month shortcode."},{"src":"https:\/\/ps.w.org\/current-year-shortcode\/assets\/screenshot-3.png?rev=2410468","caption":"Day shortcode."},{"src":"https:\/\/ps.w.org\/current-year-shortcode\/assets\/screenshot-4.png?rev=2410468","caption":"Copyright shortcode."},{"src":"https:\/\/ps.w.org\/current-year-shortcode\/assets\/screenshot-5.png?rev=2410468","caption":"Symbols and IP shortcode."}],"raw_content":"<!--section=description-->\n<p><strong>Don't work? Open ticket, we answer in max 48h.<\/strong><\/p>\n\n<p><strong>How shortcode work:<\/strong> <a href=\"https:\/\/codex.wordpress.org\/Shortcode\" title=\"WordPress Codex\">WordPress Codex<\/a><\/p>\n\n<p><strong>Full documentation and shortcode list:<\/strong> <a href=\"http:\/\/uskgm.it\/cysdoc\" title=\"Documentation\">Documentation<\/a><\/p>\n\n<p>Current year, copyright, symbols and user IP with shortcode.<\/p>\n\n<p>[y] display current year <strong>2020<\/strong>\n[m] display current month <strong>October<\/strong>\n[d] display current day <strong>25<\/strong>\n[dmy] display current date <strong>01\/01\/2023<\/strong>\n[c] display copyright symbol <strong>\u00a9<\/strong>\n[t] display registered trademark symbol <strong>\u00ae<\/strong>\n[tm] display unregistered trademark symbol <strong>\u2122<\/strong>\n[sm] display service mark symbol <strong>\u2120<\/strong>\n[cc] display <strong>Copyright<\/strong>\n[cy] display symbol of copyright and current year <strong>\u00a92019<\/strong>\n[cyy year=\"2003\"] display symbol of copyright, first year, current year <strong>\u00a92003-2019<\/strong>\n[cyyl year=\"2003\"] display copyright, first year, current year <strong>Copyright 2003-2019<\/strong>\n[cyyls year=\"2003\"] display copyright (+\u00a9), first year, current year <strong>\u00a9Copyright 2003-2019<\/strong>\n[show_user_ip] display ip of current user<\/p>\n\n<p><strong>Useful attribute for extend shortcode functionality<\/strong><\/p>\n\n<p><strong>Format Attribute for Year<\/strong>\nFor 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\".\n<em>You must enter year attribute in the same format.<\/em><\/p>\n\n<p><strong>Example<\/strong>\n[cyy year=\"03\" format=\"y\"] <strong>\u00a903-19<\/strong>\n[cyy year=\"2003\" format=\"Y\"] <strong>\u00a92003-2019<\/strong><\/p>\n\n<p><strong>Format Attribute for Month<\/strong>\nFor shortcode with month you can choose format with attribute format=\"\". It support \"F\" - \"m\" - \"M\" - \"n\".<\/p>\n\n<p><strong>Format Attribute for Day<\/strong>\nFor shortcode with day you can choose format with attribute format=\"\". It support \"D\" - \"d\" - \"j\" - \"N\"<\/p>\n\n<p><strong>Format Attribute for current date<\/strong>\nAll php date function attributes.<\/p>\n\n<p><strong>Offset Attribute<\/strong>\nFor day shortcode [d] you can add offset with attribute offset=\"\". It support + or -.\nFor month shortcode [m] you can add offset with attribute offset=\"\". It support + or -.\nFor year shortcode [y] you can add offset with attribute offset=\"\". It support + or -.\nFor current date shortcode [dmy] you can add offset with attribute offset=\"\". It support + or - in standard php date format, for ex. + 1 year or - 1 day.<\/p>\n\n<p><strong>Example<\/strong>\n[d offset=\"+1\"] <strong>2023<\/strong>\n[m offset=\"+1\"] <strong>2<\/strong> (if current month is January)\n[y offset=\"+1\"] <strong>2<\/strong> (if current day is 1)\n[dmy offset=\"+ 1 year\"] <strong>01\/01\/2023<\/strong><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the '\/wp-content\/plugins\/' directory, or install the plugin through the WordPress add plugins page directly.<\/li>\n<li>Activate the plugin through the 'Plugins' page in WordPress.<\/li>\n<li>Add shortcode in all position where WordPress accept it.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='what%20are%20wordpress%20shortcode%3F'><h3>What are WordPress shortcode?<\/h3><\/dt>\n<dd><p><strong>Read how WordPress shortcode work:<\/strong> <a href=\"https:\/\/codex.wordpress.org\/Shortcode\" title=\"WordPress Codex\">WordPress Codex<\/a><\/p><\/dd>\n<dt id='what%20are%20the%20available%20shortcodes%3F'><h3>What are the available shortcodes?<\/h3><\/dt>\n<dd><p>[y] display current year <strong>2020<\/strong>\n[m] display current month <strong>October<\/strong>\n[d] display current day <strong>25<\/strong>\n[dmy] display current date <strong>01\/01\/2023<\/strong>\n[c] display copyright symbol <strong>\u00a9<\/strong>\n[t] display registered trademark symbol <strong>\u00ae<\/strong>\n[tm] display unregistered trademark symbol <strong>\u2122<\/strong>\n[sm] display service mark symbol <strong>\u2120<\/strong>\n[cc] display <strong>Copyright<\/strong>\n[cy] display symbol of copyright and current year <strong>\u00a92019<\/strong>\n[cyy year=\"2003\"] display symbol of copyright, first year, current year <strong>\u00a92003-2019<\/strong>\n[cyyl year=\"2003\"] display copyright, first year, current year <strong>Copyright 2003-2019<\/strong>\n[cyyls year=\"2003\"] display copyright (+\u00a9), first year, current year <strong>\u00a9Copyright 2003-2019<\/strong>\n[show_user_ip] display ip of current user<\/p>\n\n<p><strong>Full list here:<\/strong> <a href=\"http:\/\/uskgm.it\/cysdoc\" title=\"Documentation\">Documentation<\/a><\/p><\/dd>\n<dt id='what%20are%20the%20symbols%20shortcode%3F'><h3>What are the symbols shortcode?<\/h3><\/dt>\n<dd><p>[c] display copyright symbol <strong>\u00a9<\/strong>\n[t] display registered trademark symbol <strong>\u00ae<\/strong>\n[tm] display unregistered trademark symbol <strong>\u2122<\/strong>\n[sm] display service mark symbol <strong>\u2120<\/strong><\/p>\n\n<p>Symbols shortcode retrieve the most common \"registration\" symbols. \nFor more symbols shortcode write a support ticket!<\/p><\/dd>\n<dt id='what%20is%20the%20ip%20shortcode%3F'><h3>What is the IP shortcode?<\/h3><\/dt>\n<dd><p>[show_user_ip] display ip of current user<\/p>\n\n<p>With IP shortcode you can retrieve your user IP.<\/p><\/dd>\n<dt id='how%20work%20year%20format%20attribute%3F'><h3>How work year format attribute?<\/h3><\/dt>\n<dd><p>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\".\n<em>You must enter year attribute in the same format.<\/em><\/p>\n\n<p><strong>Example<\/strong>\n[cyy year=\"03\" format=\"y\"] <strong>\u00a903-19<\/strong>\n[cyy year=\"2003\" format=\"Y\"] <strong>\u00a92003-2019<\/strong><\/p><\/dd>\n<dt id='how%20work%20month%20format%20attribute%3F'><h3>How work month format attribute?<\/h3><\/dt>\n<dd><p>For shortcode with month you can choose format with attribute format=\"\". It support \"F\" - \"m\" - \"M\" - \"n\".<\/p><\/dd>\n<dt id='how%20work%20day%20format%20attribute%3F'><h3>How work day format attribute?<\/h3><\/dt>\n<dd><p>For shortcode with day you can choose format with attribute format=\"\". It support \"D\" - \"d\" - \"j\" - \"N\"<\/p><\/dd>\n<dt id='how%20work%20year%2C%20month%20and%20day%20offset%20attribute%3F'><h3>How work year, month and day offset attribute?<\/h3><\/dt>\n<dd><p>For day shortcode [d] you can add offset with attribute offset=\"\". It support + or -.\nFor month shortcode [m] you can add offset with attribute offset=\"\". It support + or -.\nFor year shortcode [y] you can add offset with attribute offset=\"\". It support + or -.\nFor current date shortcode [dmy] you can add offset with attribute offset=\"\". It support + or - in standard php date format, for ex. +1year or -1day.<\/p>\n\n<p><strong>Example<\/strong>\n[d offset=\"+1\"] <strong>2023<\/strong>\n[m offset=\"+1\"] <strong>2<\/strong> (if current month is January)\n[y offset=\"+1\"] <strong>2<\/strong> (if current day is 1)\n[dmy offset=\"+ 1 year\"] <strong>01\/01\/2023<\/strong><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.4.1<\/h4>\n\n<ul>\n<li>Bugfix.<\/li>\n<\/ul>\n\n<h4>2.4<\/h4>\n\n<ul>\n<li>Complete code revision.<\/li>\n<\/ul>\n\n<h4>2.3.5<\/h4>\n\n<ul>\n<li>6.6 compatibility.<\/li>\n<\/ul>\n\n<h4>2.3.4<\/h4>\n\n<ul>\n<li>6.5 compatibility.<\/li>\n<\/ul>\n\n<h4>2.3.3<\/h4>\n\n<ul>\n<li>6.4 compatibility.<\/li>\n<\/ul>\n\n<h4>2.3.2<\/h4>\n\n<ul>\n<li>Code revisions.<\/li>\n<\/ul>\n\n<h4>2.3.1<\/h4>\n\n<ul>\n<li>Bugfix and compatibility.<\/li>\n<\/ul>\n\n<h4>2.3<\/h4>\n\n<ul>\n<li>Translation with date_i18n. Added current date shortcode (dmy).<\/li>\n<\/ul>\n\n<h4>2.2.3<\/h4>\n\n<ul>\n<li>Months translatable with .pot.<\/li>\n<\/ul>\n\n<h4>2.1<\/h4>\n\n<ul>\n<li>Bugfix.<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>Bugfix.<\/li>\n<\/ul>\n\n<h4>1.9<\/h4>\n\n<ul>\n<li>Compatibility WordPress 5.8.<\/li>\n<\/ul>\n\n<h4>1.8.3<\/h4>\n\n<ul>\n<li>Compatibility WordPress 5.7.<\/li>\n<\/ul>\n\n<h4>1.8.2<\/h4>\n\n<ul>\n<li>Bugfix.<\/li>\n<\/ul>\n\n<h4>1.8.1<\/h4>\n\n<ul>\n<li>FAQ updated.<\/li>\n<\/ul>\n\n<h4>1.8<\/h4>\n\n<ul>\n<li>New shortcode for month and day, new documentation.<\/li>\n<\/ul>\n\n<h4>1.7.2<\/h4>\n\n<ul>\n<li>Version compatibility update.<\/li>\n<\/ul>\n\n<h4>1.7.1<\/h4>\n\n<ul>\n<li>Version compatibility update.<\/li>\n<\/ul>\n\n<h4>1.7<\/h4>\n\n<ul>\n<li>Bugfix and new shortcode for retrieve IP.<\/li>\n<\/ul>\n\n<h4>1.6<\/h4>\n\n<ul>\n<li>New name and compatibility update.<\/li>\n<\/ul>\n\n<h4>1.5<\/h4>\n\n<ul>\n<li>Bugfix and offset for [y] shortcode.<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>Added \u2122 and \u2120 symbol.<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Compatibility revision.<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Compatibility revision.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Bugfix.<\/li>\n<\/ul>\n\n<h4>1<\/h4>\n\n<ul>\n<li>Now you can format year with format=\"\" attribute. You can choose \"y\" or \"Y\". More info in description.<\/li>\n<\/ul>\n\n<h4>0.4<\/h4>\n\n<ul>\n<li>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 \"\u00a9Copyright year-year\".<\/li>\n<\/ul>\n\n<h4>0.3.1<\/h4>\n\n<ul>\n<li>Bugfix<\/li>\n<\/ul>\n\n<h4>0.3<\/h4>\n\n<ul>\n<li>Added [cc] shortcode \"Copyright\".<\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<ul>\n<li>Added more shortcode (copyright, trademark, copyright + year of creation + current year)<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Useful shortcode for WordPress. Current year, copyright, symbols and user IP with shortcode.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/81922","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=81922"}],"author":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/kgmservizi"}],"wp:attachment":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=81922"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=81922"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=81922"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=81922"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=81922"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=81922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}