It’s that time of year again. No, I don’t mean time to make resolutions for the new year or to plan out your business strategy for the next twelve months. It’s time to update the copyright date on your websites. Well, if you use WordPress you can fix this issue now so you will never again have to mess with changing your copyright date.
Many WordPress themes include a copyright date in the footer. The problem is that they only list the current year. However, a proper copyright date should cover a range of years beginning with the first year your website went live. For example, if your blog started in 2005, your copyright should cover 2005 through the current year. To fix your copyright date so that it contains the proper date range and automatically updates at the beginning of each year, just place the following code in your footer.php file:
© Copyright 2005–<?php echo date('Y'); ?> <?php bloginfo('name'); ?>. All rights reserved.
Replace 2005 with whatever year your website started. You may also replace
<?php bloginfo('name');?> with your domain name or the legal name of your company if you wish, so you may end up with something like this:
© Copyright 2005–<?php echo date('Y'); ?> My Company Name, Inc. All rights reserved.
If you want to see how it looks, just scroll to the bottom of this page and look at the copyright in the footer. With this code in your footer, you’ll never have to worry about updating your website copyright date again. Happy New Year!