Add a Changing Copyright Date to Your WordPress Theme

If you have a theme that displays a copyright (and you should), one annoying problem occurs every year – the copyright date needs to be updated.

Start your blog in 2008 for example, and it needs to be changed to 2007-2008, and now 2007-2009.

Of course, for a “dead” blog this isn’t a problem – but for those of us blogging regularly, the copyright DOES change, and increases each year.

So how can you make it automatic?

Find the part of your theme that displays the copyright year, usually footer.php. Here’s an example (© is the HTML code for the copyright symbol ©):

Copyright © 2007

Change it to:

Copyright &copy; 2007-<?php echo date('Y'); ?>

Now you’ll get a date range, based on the current year, and increasing each year – in this case, 2007-2009, then 2007-2010, 2007-2011, etc.

Quick and easy – and provides a little extra copyright information for your blog.

SOME ITEMS YOU MIGHT ENJOY
2 Amazon Affiliate Websites Installed Wordpress On your Hosting
$60.00
End Date: Saturday Dec-16-2017 21:11:53 PST
Buy It Now for only: $60.00
Buy It Now | Add to watch list
Arcade Wordpress Online Games Affiliate Website For Sale 3 Months Hosting FREE
$8.99
End Date: Thursday Dec-14-2017 21:11:53 PST
Buy It Now for only: $8.99
Buy It Now | Add to watch list
PREMIUM Jewelry Aliexpress Dropshipping Store - Wordpress E-commerce Business
$49.00
End Date: Wednesday Jan-10-2018 19:34:34 PST
Buy It Now for only: $49.00
Buy It Now | Add to watch list


One thought on “Add a Changing Copyright Date to Your WordPress Theme

Leave a Reply

Your email address will not be published. Required fields are marked *