Our Biggest Cyber Monday Sale Ever!

Grab Agency Bundle at the Lowest Price Ever!
Grab up to 40% OFF! Limited Time Offer.

ADVERTISEMENT

How to auto-update the year in your footer

Cute Amazom Box e1301040903311

Instead of manually updating the year in the footer.php of your WordPress blog every time a new year comes, you can make it update itself automatically by using this bit of code:

<?php echo date('Y'); ?>

Just add the code in place of the year and it will display the current year.

Example:

&copy; <?php echo date('Y'); ?> Mad Tomato

This will display “© 2011 Mad Tomato”

The Most Popular Theme of All Time

Built for speed and fully optimized for performance!

1 thought on “How to auto-update the year in your footer”

Leave a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top