Quicktip: Update your Wordpress copyright date automatically

January 2009

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.


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.

Receive more design content like this to your inbox

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

I blog and share links about web design, user experience, product development, HTML/CSS, email design and anything else I find interesting.

No thanks