For those who like to put Copyright [year] in footer might like this trick. It is just simple trick by using php date function. Usually we see a copyright at footer like this:
Copyright © 2004 – 2006 www.website.com
But when the next year come, you have to edit the footer for the next year. But with php, it will save your time. Just put this code:
Copyright © 2004 - <?php echo date("Y") ?> www.website.com
in your footer and you no need to update your footer every year. It will automatically change to the current year.
[via WPMalaysia][tags]php, copyright, auto update[/tags]
Leave a Reply