Dynamic Copyright Date

Maintaining WordPress sites is an important part of my day to day workload. In short, it pays the bills. However, repetitive practices always make me want to find an alternative approach.
A recent client asked me to update the copyright dates that are within the footer section of the website. Rather than come back in a year to repeat the process I endeavoured to find a way for the change to happen dynamically.

The site is built on WordPress so a simple PHP solution would be required.

This method requires access to the footer.php file which can be achieved through the theme editor section of the WordPress backend.

<p>Copyright 

&

copy; <?php echo date(“Y”); echo ” “; echo bloginfo(‘name’); ?></p>