Copyright notices are a common feature on many website footers. As we crawl into 2012, you will need to remember to update your own copyright notice so that it isn’t out of date. John Chow reminded me how easy it is to make sure your copyright notice is updated automatically every year.
To display the current year on your website you need to use the_date function.
<?php echo the_date('Y'); ?>
So to add a copyright notice to your footer we just need to add something like this to your footer.php template:
Copyright © <?php echo the_date('Y'); ?> Website Name
You can easily extend this further if you want to include the year your website launched:
Copyright © 2010 - <?php echo the_date('Y'); ?> Website Name
If you have a copyright notice in your website footer, I encourage you to add automate it so that it is updated automatically every year.
Good luck
Kevin






I've written a short snippet which is an improvement over this, as it supports date ranges, so all you enter is the start date, and then it will display it as just that year, or that year to the current one if applicable
Check it out at http://www.gostomski.co.uk/snippet/better-auto-updating-copyright-date
- spam
- offensive
- disagree
- off topic
Like