Setting up a dynamic copyright in WordPress
When you have a website running for several years it’s getting pretty annoying to update the copyright years in the footer year by year.
Paste this simple code into your footer template to generate copyright years fully automated (change “2009″ to the year when you started):
1 2 3 4 5 6 7 8 | <div class="footer"> <? if (date("Y") > 2009) echo "2009 - "; echo date("Y"); ?> example.com. All Rights Reserved. </div> |
3 Responses to “Setting up a dynamic copyright in WordPress”
Leave a Reply


















Rufor on June 4th, 2009
Ugh, I liked! So clear and positively.
Rufor
Mr American on June 14th, 2009
Hey, this blog is pretty nice. Keep up the good work
chris on June 18th, 2009
thanks a lot :)