Divi Page Builder

The Ultimate Web Design Toolkit!

Claim the discount before it disappears!

How to auto-update the year in your footer

Cute Amazom Box e1301040903311 How to auto-update the year in your footer

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”

Divi Visual Page Builder

The Ultimate WordPress Toolkit. Complete Access!

For a short time only, we are offering you 10% off your membership.
Claim the discount before it disappears!

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

Comments are closed.

Scroll to Top
Scroll to Top
Copy link