Dynamic Copyright in your WordPress Footer

Posted on: May 29, 2009 by Chris Coyier

Many footers on websites contain text like “© 2009 Your Website”. A good measure, surely. We can use some classic PHP and a built-in WordPress function to make this bit of text dynamic so that it will never need to be tampered with manually again.

<p>
   &copy; <?php echo date("Y"); echo " "; echo bloginfo('name'); ?>
</p>

The year will always be the current year, based on your server’s set time. The text will come directly from the Blog Title setting in Settings > General.

Tags:
Thumb for Dynamic Copyright in your WordPress Footer

Let's talk it out, folks.

  1. ooh nice tip! :)

  2. nice tip, thanks!

  3. Rukbat said on July 4, 2009:

    Very simple, very nice. Thank you.

Comments are closed. If you have something really important to add, contact us. Thank you!