{"id":7394,"date":"2011-03-17T07:00:43","date_gmt":"2011-03-17T13:00:43","guid":{"rendered":"http:\/\/www.casadeblundell.com\/jonathan\/?p=7394"},"modified":"2011-03-21T09:59:56","modified_gmt":"2011-03-21T15:59:56","slug":"update-your-copyright-automatically","status":"publish","type":"post","link":"http:\/\/casadeblundell.com\/jonathan\/update-your-copyright-automatically\/","title":{"rendered":"Update your WordPress copyright date automatically"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.casadeblundell.com\/jonathan\/wp-content\/uploads\/copyright.jpg\" alt=\"\" title=\"copyright\" width=\"500\" height=\"200\" class=\"aligncenter size-full wp-image-7398\" srcset=\"http:\/\/casadeblundell.com\/jonathan\/wp-content\/uploads\/copyright.jpg 500w, http:\/\/casadeblundell.com\/jonathan\/wp-content\/uploads\/copyright-300x120.jpg 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p>\n<p>Three months into the new year and I&#8217;m still coming across several websites that I manage that are still showing a copyright for last year.<\/p>\n<p>DOH!<\/p>\n<p>It&#8217;s easy to forget as the calendar rolls over to update all your copyright (or Creative Commons) tags on your websites, so why not automate it?<\/p>\n<p>Simply replace the latest year (i.e. &copy; 2005-2010 Jonathan D. Blundell) with this simple code:<\/p>\n<p><code>&lt;?php echo date(&#039;Y&#039;); ?&gt;<!--formatted--><\/code><\/p>\n<p>So you&#8217;re resulting copyright line will look like this:<\/p>\n<p><code>&amp;copy; 2005-&lt;?php echo date(&#039;Y&#039;); ?&gt; Jonathan D. Blundell<!--formatted--><\/code><\/p>\n<p>And every year, your copyright statement will update with the current year.<\/p>\n<p>Easy peasy!<\/p>\n<p>Now I just need to go update <em>this<\/em> in all my footers&#8230; DOH!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Three months into the new year and I&#8217;m still coming across several websites that I manage that are still showing a copyright for last year. DOH! It&#8217;s easy to forget as the calendar rolls over to update all your copyright (or Creative Commons) tags on your websites, so why not automate it? Simply replace the &hellip; <a href=\"http:\/\/casadeblundell.com\/jonathan\/update-your-copyright-automatically\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Update your WordPress copyright date automatically<\/span><\/a><\/p>\n","protected":false},"author":84,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[3708],"tags":[1408,4080,196,1257,1821,4082,2733,1965,4085,1710,4086,1184,4081,4083,4084],"class_list":["post-7394","post","type-post","status-publish","format-standard","hentry","category-wordpress-techno","tag-blogging","tag-copyright","tag-creative-commons","tag-date","tag-download","tag-footer","tag-how-to","tag-php","tag-php-echo","tag-tag","tag-widget","tag-wordpress","tag-wordpress-plugins","tag-wordpress-themes","tag-wp"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pEnSo-1Vg","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/casadeblundell.com\/jonathan\/wp-json\/wp\/v2\/posts\/7394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/casadeblundell.com\/jonathan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/casadeblundell.com\/jonathan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/casadeblundell.com\/jonathan\/wp-json\/wp\/v2\/users\/84"}],"replies":[{"embeddable":true,"href":"http:\/\/casadeblundell.com\/jonathan\/wp-json\/wp\/v2\/comments?post=7394"}],"version-history":[{"count":0,"href":"http:\/\/casadeblundell.com\/jonathan\/wp-json\/wp\/v2\/posts\/7394\/revisions"}],"wp:attachment":[{"href":"http:\/\/casadeblundell.com\/jonathan\/wp-json\/wp\/v2\/media?parent=7394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/casadeblundell.com\/jonathan\/wp-json\/wp\/v2\/categories?post=7394"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/casadeblundell.com\/jonathan\/wp-json\/wp\/v2\/tags?post=7394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}