How to Auto-update Your Copyright in WordPress
Posted: January 4th, 2010 | Author: Agitationist | Filed under: blogging, tools, wordpress | Tags: blogging, code, tools, useful, wordpress | 3 Comments »(Republished from last year, because you need it.)
So it’s a new year…have you forgotten anything?
Here’s a hint:
Ever see a site with a copyright statement 6 months out of date? Even big-shot corporate blogs make this mistake. But on a young, growing blog, it looks particularly bad.
Or perhaps you don’t have a copyright statement at all? Tsk tsk.
Why don’t we automate this, so we’ll never, ever have to think about it again? Here’s how to do it in WordPress:
- Log in to WordPress, and go to Theme Editor.
- Choose “footer.php”.
- Delete your current copyright statement (if it exists), and insert the following code:© 2008 – <?php echo date(Y); ?>…replacing “2008″ with the date you started your blog.
- If you wish, put your name adjacent to the copyright, being sure not to disturb the php date tag. See mine below for an example.
- Done.
Happy New Year! Anyone got a good detox recipe?
