By , January 2009

Quicktip: Update your Wordpress copyright date automatically

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).

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.

« Northern Ireland creative resources: Blogs, events, free wi-fi Best Places in Northern Ireland »

Receive more design content like this to your inbox

I promise not to spam you. No more than one email per week.