Dynamic Copyright Year In Your Footer

wordpress-code-small

wordpress-code-smallThe 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:

<p>copyright © 2006-<?php echo date(‘Y’); ?> mysite.com</p>

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.