How to add WordPress footer that will update Copyright Year automatically every year?

How to add WordPress footer that will update Copyright Year automatically every year?

Every year bloggers should update the Copyright Year at the bottom of their blog. Footer should always indicate the current year. It applies to any online intellectual property. If you have a blog, at the end of every year, you can sign in and change the year in your wordpress theme manually. But if you have several websites, it would be a hectic job. Isn’t it?

Here is the solution to save your valuable time. We can add a piece of PHP code that will be update Copyright Year according to your web server’s System Time.

Usually the Copyright Notice looks like:

Copyright © 2009-2010 WordPress Rockers Blog

We need to change the latest year from that Copyright Notice. To do so, let follow these steps:

  1. Log in to your WordPress dashboard and go to Appearance > Editor.
  2. Now click on Footer (footer.php) from Templates list. Source code for footer.php will be loaded in the large textbox.
  3. Search the Copyright Notice in the box, usually you will find it at the very end of the box.
  4. Depending on the theme, you may find Copyright Notice displayed in different ways. Don’t worry. Just replace the latest year with the following PHP code
  5. 1
    <?php echo date('Y'); ?>
  6. If you are not happy with your existing Copyright Notice, you can remove the notice and replace with the following:
  7. 1
    <p>Copyright &copy; 2009-<?php echo date('Y'); ?> [Your Blog Name]</p>
  8. That’s it. Once you are happy, click Update File button.

Good luck with the change and if you need help just leave a comment.


By | On Wednesday, June 30th, 2010 | Under How To's | 4 Comments »


Contact our experts, most of the time we assist our readers free of charge.

Those who found this page were searching for:

  • wordpress rockers - copyright notice footer
  • add copyright to footer in wordpress
  • add copyright footer wordpress
  • wordpress copyright footer
  • updating copyright in wordpress footer
  • how to add copyright to wordpress footer
  • wordpress current year
  • code for adding copyright footer to wordpress
  • html code for footer copyright notice
  • add copyright to wordpress footer
  • Gaurav

    How do i do same thing with groovy in .gsp?

  • palermo

    Indeed simple gread thx

  • Winston Crutchfield

    Awesome tip! Simple, easy, and just what I needed. Thanks!

Previous post:

Next post: