Always Have this Year in Your WordPress Footer
Mar 1 2011 by Andrew Brown
The year has changed, but your footer hasn’t. One minor adjustment and you’ll never have to worry about that year being out of date again.
This is what we’re going to add
<?php echo date('Y') ?>Your footer code will look a bit different from mine, but just open footer.php in your wordpress template, and replace the year with the line of code above, you’ll never have to update your footer again.
<div class="footer"> <p> <?php echo date('Y') ?> © Monsterbox Productions </p> </div><!-- footer --> </div><!-- wrapper --> </div><!-- container --> </body> </html>
Write a Comment to “Always Have this Year in Your WordPress Footer”