How to set WordPress footer copyright to automatically show current year?

This is very easy and simple in WordPress, if your theme doesn’t have it already.

Go to Dashboard > Appearance > Editor.

Click on footer.php in the list of program files.

Now, insert below code where you want the copyright and year to appear.

© <?php echo date("Y") ?>

#date, #php, #wordpress, #year