1 License. Complete Access!

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.


&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”

Comments are closed.

Mad Tomatoes Scroll to Top
Copy link
Powered by Social Snap