Learning Movable Type: Automatic Copyright Notice Year Update


Every year come January we have to start signing checks with a new date. One little site detail that often gets overlooked is the date on the copyright notice (if you have a copyright notice) for your blog. If your site is PHP friendly, you can replace the copyright date with a little php script that automatically puts in the correct year.

Replacing the date with <?php echo date('Y'); ?> will do the trick. For example, the copyright code for LMT is:

Copyright &copy; 2004-<?php echo date('Y'); ?>

There's probably a way to do this just with using MT tags. Anyone know how? If so, please let us know in the comments and I'll add it to this post.


Posted by Elise Bauer on January 8, 2007 10:11 AM to Learning Movable Type http://www.learningmovabletype.com/