Tag Archives: PHP Date()

January 27, 2012

By Kevin

Categories: PHP, WordPress

Tags: , , ,

How To: Automatically Change Year in a WordPress Theme footer

A few days ago I wanted to add the year to the copyright porition of the footer of my WordPress theme. To do this I added the following code to the footer.php of my theme.

  <p>Copyright &#169; <?php echo date('Y'); ?> <a href="https://www.kevinverver.com">Kevin Verver</a>.</p>

The great thing about this code is that it will change the year automatically each year so that you don’t have to remember to update it yourself.

Kevin