{"id":58,"date":"2025-12-12T23:50:37","date_gmt":"2025-12-13T02:50:37","guid":{"rendered":"https:\/\/jmsilcom.com\/?p=58"},"modified":"2025-12-12T23:50:37","modified_gmt":"2025-12-13T02:50:37","slug":"year-shortcode-wordpress","status":"publish","type":"post","link":"https:\/\/jmsilcom.com\/?p=58","title":{"rendered":"Year Shortcode WordPress"},"content":{"rendered":"<p><!DOCTYPE html><br \/>\n<html lang=\"en\"><br \/>\n<head><br \/>\n <meta charset=\"UTF-8\"><br \/>\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><br \/>\n <title>Year Shortcode in WordPress<\/title><br \/>\n<\/head><br \/>\n<body><\/p>\n<h1>How to Display the Current Year in WordPress With a Shortcode &#8211; [year] UPDATED!<\/h1>\n<p>This short article will show you the EASIEST way to display the Current Year in WordPress using a Shortcode.<br \/>\n But!\u2026<br \/>\n I will also show you some other ways you can add this type of functionality, depending on the Page Builder you are using (this is important to understand).<br \/>\n I\u2019ll also share with you a new plugin I have started using to manage all these small PHP snippets we add to our website over time and I\u2019ll run you through why it\u2019s SO MUCH BETTER than adding things into your functions.php file.<\/p>\n<div class=\"video-gallery\" style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 10px;\"><iframe src=\"https:\/\/www.youtube.com\/embed\/izIDOiQgWcU\" style=\"width:100%; height:200px;\" frameborder=\"0\" allowfullscreen><\/iframe><iframe src=\"https:\/\/www.youtube.com\/embed\/TLwUsTHSPzs\" style=\"width:100%; height:200px;\" frameborder=\"0\" allowfullscreen><\/iframe><iframe src=\"https:\/\/www.youtube.com\/embed\/9p36LYrJ490\" style=\"width:100%; height:200px;\" frameborder=\"0\" allowfullscreen><\/iframe><iframe src=\"https:\/\/www.youtube.com\/embed\/UErP50wMv0k\" style=\"width:100%; height:200px;\" frameborder=\"0\" allowfullscreen><\/iframe><\/div>\n<h2>How to Create Custom Shortcodes in WordPress for Beginners<\/h2>\n<p>Hello, I&#8217;m Mike and today we&#8217;re talking about creating custom short codes in WordPress. WordPress short codes are a powerful feature to do cool stuff with little effort.<br \/>\n <!-- Resto do conte\u00fado do v\u00eddeo --><br \/>\n<\/body><br \/>\n<\/html><\/p>\n<p><!--- GALERIA_VIDEOS ---><\/p>\n<h2>Video Gallery<\/h2>\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/videoseries?list=PLuJiKOoPi4TUZX_e8-x7aPjrkNtSCkDUg\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Year Shortcode in WordPress How to Display the Current Year in WordPress With a Shortcode &#8211; [year] UPDATED! This short article will show you the EASIEST way to display the Current Year in WordPress using a Shortcode. But!\u2026 I will also show you some other ways you can add this type of functionality, depending on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","_jetpack_memberships_contains_paid_content":false,"ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"on","ocean_gallery_id":[],"footnotes":""},"categories":[1],"tags":[],"class_list":["post-58","post","type-post","status-publish","format-standard","hentry","category-sem-categoria","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Year Shortcode Wordpress - jmsilcom<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jmsilcom.com\/?p=58\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Year Shortcode Wordpress - jmsilcom\" \/>\n<meta property=\"og:description\" content=\"Year Shortcode in WordPress How to Display the Current Year in WordPress With a Shortcode &#8211; [year] UPDATED! This short article will show you the EASIEST way to display the Current Year in WordPress using a Shortcode. But!\u2026 I will also show you some other ways you can add this type of functionality, depending on [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jmsilcom.com\/?p=58\" \/>\n<meta property=\"og:site_name\" content=\"jmsilcom\" \/>\n<meta property=\"article:published_time\" content=\"2025-12-13T02:50:37+00:00\" \/>\n<meta name=\"author\" content=\"cdaer2\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"cdaer2\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. tempo de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jmsilcom.com\/?p=58#article\",\"isPartOf\":{\"@id\":\"https:\/\/jmsilcom.com\/?p=58\"},\"author\":{\"name\":\"cdaer2\",\"@id\":\"https:\/\/jmsilcom.com\/#\/schema\/person\/676bb0163c8cd25cc20133ba160c40c5\"},\"headline\":\"Year Shortcode WordPress\",\"datePublished\":\"2025-12-13T02:50:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jmsilcom.com\/?p=58\"},\"wordCount\":157,\"commentCount\":0,\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/jmsilcom.com\/?p=58#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jmsilcom.com\/?p=58\",\"url\":\"https:\/\/jmsilcom.com\/?p=58\",\"name\":\"Year Shortcode Wordpress - jmsilcom\",\"isPartOf\":{\"@id\":\"https:\/\/jmsilcom.com\/#website\"},\"datePublished\":\"2025-12-13T02:50:37+00:00\",\"author\":{\"@id\":\"https:\/\/jmsilcom.com\/#\/schema\/person\/676bb0163c8cd25cc20133ba160c40c5\"},\"breadcrumb\":{\"@id\":\"https:\/\/jmsilcom.com\/?p=58#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jmsilcom.com\/?p=58\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jmsilcom.com\/?p=58#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/jmsilcom.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Year Shortcode WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jmsilcom.com\/#website\",\"url\":\"https:\/\/jmsilcom.com\/\",\"name\":\"jmsilcom\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jmsilcom.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/jmsilcom.com\/#\/schema\/person\/676bb0163c8cd25cc20133ba160c40c5\",\"name\":\"cdaer2\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/jmsilcom.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5d48477d78a58e1d2ccfe74c9f32f17c65c3da7f525ffbb89cffc54beefe7eac?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5d48477d78a58e1d2ccfe74c9f32f17c65c3da7f525ffbb89cffc54beefe7eac?s=96&d=mm&r=g\",\"caption\":\"cdaer2\"},\"sameAs\":[\"https:\/\/jmsilcom.com\"],\"url\":\"https:\/\/jmsilcom.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Year Shortcode Wordpress - jmsilcom","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jmsilcom.com\/?p=58","og_locale":"pt_BR","og_type":"article","og_title":"Year Shortcode Wordpress - jmsilcom","og_description":"Year Shortcode in WordPress How to Display the Current Year in WordPress With a Shortcode &#8211; [year] UPDATED! This short article will show you the EASIEST way to display the Current Year in WordPress using a Shortcode. But!\u2026 I will also show you some other ways you can add this type of functionality, depending on [&hellip;]","og_url":"https:\/\/jmsilcom.com\/?p=58","og_site_name":"jmsilcom","article_published_time":"2025-12-13T02:50:37+00:00","author":"cdaer2","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"cdaer2","Est. tempo de leitura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jmsilcom.com\/?p=58#article","isPartOf":{"@id":"https:\/\/jmsilcom.com\/?p=58"},"author":{"name":"cdaer2","@id":"https:\/\/jmsilcom.com\/#\/schema\/person\/676bb0163c8cd25cc20133ba160c40c5"},"headline":"Year Shortcode WordPress","datePublished":"2025-12-13T02:50:37+00:00","mainEntityOfPage":{"@id":"https:\/\/jmsilcom.com\/?p=58"},"wordCount":157,"commentCount":0,"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/jmsilcom.com\/?p=58#respond"]}]},{"@type":"WebPage","@id":"https:\/\/jmsilcom.com\/?p=58","url":"https:\/\/jmsilcom.com\/?p=58","name":"Year Shortcode Wordpress - jmsilcom","isPartOf":{"@id":"https:\/\/jmsilcom.com\/#website"},"datePublished":"2025-12-13T02:50:37+00:00","author":{"@id":"https:\/\/jmsilcom.com\/#\/schema\/person\/676bb0163c8cd25cc20133ba160c40c5"},"breadcrumb":{"@id":"https:\/\/jmsilcom.com\/?p=58#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jmsilcom.com\/?p=58"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jmsilcom.com\/?p=58#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/jmsilcom.com\/"},{"@type":"ListItem","position":2,"name":"Year Shortcode WordPress"}]},{"@type":"WebSite","@id":"https:\/\/jmsilcom.com\/#website","url":"https:\/\/jmsilcom.com\/","name":"jmsilcom","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jmsilcom.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Person","@id":"https:\/\/jmsilcom.com\/#\/schema\/person\/676bb0163c8cd25cc20133ba160c40c5","name":"cdaer2","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/jmsilcom.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5d48477d78a58e1d2ccfe74c9f32f17c65c3da7f525ffbb89cffc54beefe7eac?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5d48477d78a58e1d2ccfe74c9f32f17c65c3da7f525ffbb89cffc54beefe7eac?s=96&d=mm&r=g","caption":"cdaer2"},"sameAs":["https:\/\/jmsilcom.com"],"url":"https:\/\/jmsilcom.com\/?author=1"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/jmsilcom.com\/index.php?rest_route=\/wp\/v2\/posts\/58","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jmsilcom.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jmsilcom.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jmsilcom.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jmsilcom.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=58"}],"version-history":[{"count":0,"href":"https:\/\/jmsilcom.com\/index.php?rest_route=\/wp\/v2\/posts\/58\/revisions"}],"wp:attachment":[{"href":"https:\/\/jmsilcom.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=58"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jmsilcom.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=58"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jmsilcom.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}