How to Add an Automatically Changing Copyright Year in Your Footer

Oct 09, 2010 Wordpress tips&tricks admin No comments

This is a common sight on most sites, something like a “Copyright 2009 – 2010″ or something similar in the footer. Thing is, it’s been more than a month since the new year and yet I’m still seeing “2008″ as the current year on some sites. This is how you can make WordPress change the date for you. Put in this snippet of code wherever you want the dynamic date to be displayed.

Copyright &copy; 200x-<?php echo date(‘Y’); ?> Example.com.

Thanks to forthelose.org for this tip.

No comments

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>