The new year is already some days old but in many websites you still can see in their footer “copyright ยฉ 2006-2008 mysite.com”. Yeah Andy, on your blog too ๐
For everyone, who changes the year in their footer manually every year, here is a little tip:
copyright © 2006- mysite.com
With date(‘Y’) the year from the current date get pulled and you never have to take care about it, unless you change your theme again.
Comments
9 responses to “Dynamic Copyright Year In Your Footer”
simple but good ๐ i use it now!
well well .. if you want to do it right, you have to go one step further:
(C) Copyright $strCopyrightBegin) {
echo ' - ' . date('Y');
} ?> by John Doe, all rights reserved.
cool. built it in ๐
Great tip! Just implemented in the WP theme I’m working on
Welcome guys ๐ and thanks for the right solution fwolf ๐
Now that’s a handy trick! Just went through all the copyright notices… luckily the last time for my WP sites. Glad that someone uses his brain ๐
I have a nifty little plugin WordPress Plugin to Automatically Update the Copyright Notice. that will automatically increase the copyright details based on the posts in your blog as well.
It works by finding the first and last dates from the posts and changes your footer accordingly. I’ve also posted the code for those who prefer working without plugins.
Christopher, nice one ๐
I’ve been looking for this for some time now! Sites with old copyright years are somehow a bit of a turn off.