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
Arcade Wordpress Online Games Affiliate Website For Sale 3 Months Hosting FREE
$8.99
End Date: Monday Feb-26-2018 6:42:29 PST
Buy It Now for only: $8.99
Buy It Now | Add to watch list
44 Professional Wordpress Videos With Resell Rights + Bonus FB Games w/ Resell
$5.99
End Date: Sunday Mar-25-2018 1:41:50 PDT
Buy It Now for only: $5.99
Buy It Now | Add to watch list
400 Wordpress Themes With Resell Rights / Mega Package / Email Delivery /
$12.90
End Date: Sunday Mar-25-2018 1:37:03 PDT
Buy It Now for only: $12.90
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 *