New year, time to go through all your websites and blogs and update the copyright date that you placed in the footer, right?

Not if you were smart and developed your site so it updates automatically.

Solution

PHP and Wordpress can update your copyright year automatically.

Just place this code where you want the year to appear and voila, your year will change to 2009 (and will update automatically for years to come).

<?php echo date('Y'); ?>

Admittedly I hadn’t done this myself until today ;)

Don’t use the_time

I seen a couple of solutions using the_time tag in Wordpress, but this only displays the year of the last blog post in the_loop.

Lee Munroe Written with love from Lee Munroe.

Follow @leemunroe or subscribe to the blog for more web design articles.