Earlier today, I had one of those slap-on-the-forehead moments after reading Marcie Bell’s tweet that WordPress automates copyright automatically. I think that means WordPress.com hosting and depends on your theme. Still, it was the word ‘automates’ that gave me the "d’oh!" moment as doing this manually is a little ridiculous when there are easy ways to automate it, and it’s simple to set up yourself even if you know little about PHP coding.
What I did was edit my blog’s footer template (called, logically ‘footer.php’) to include this standard PHP date code where I have the copyright text:
<?php echo date("Y") ?>
The full copyright text in the footer looks like this:
Original content copyright 2011 by Neville Hobson. Some rights reserved: see Creative Commons license for information.
In terms of what you see, nothing’s changed with the substitution of the PHP code for the actual year, 2011. The point is that, come January 1, 2012, the copyright statement will update automatically to reflect the new year now that the PHP date code is there.
The underlying code that renders the above text looks like this:
Original content copyright <?php echo date("Y") ?> by Neville Hobson. Some rights reserved: <a href="http://creativecommons.org/licenses/by-nc-sa/2.0/uk/" alt=" Don't steal content!" title="Don't steal content!">see Creative Commons license</a> for information.
You can do this yourself on any blog platform – not only self-hosted WordPress, the one I use – that lets you directly edit the code of your blog template files. There are a number of ways to do it. With WordPress, for instance, it’s easy to edit the footer.php file from the theme editor you can access from your admin dashboard. Or you could edit the file remotely and then upload it via FTP to your server. Or, perhaps you have a theme that offers user-friendly editing of some of the theme components via a choice on a theme-specific admin section in your dashboard.
However you do it, it’s automatic simplicity.