How to Update Copyright Year Automatically in WordPress Themes

by Hami on January 5, 2010

ADVERTISEMENTS

Wordpress logoNew Year has started with bang and this was the time when all bloggers are look forward to make certain things on their blogs. These activities ranges from the top posts of the year, new year resolutions, giveaways, etc.

One more thing being a blogger you should look for is to update your copyright notice year. This year I was keen to see posts reminding fellow bloggers to update it but luckily I was relaxed as I have already added a tweak to in let it update automatically.
Here I am sharing a simply and quite easy to do tweak for WordPress themes.
All you have to add the following code where you want to appear the automatic updating copyright year.

How to Do?

Copyright notices are found in the footer of the themes (most of times), so to add this code simply got to WordPress Dashboard and browse to the footer of the active theme and replace the existing code with the following one and hit Update.

Copyright &copy; <?php echo date(‘Y’); ?> – Your Blog Name

Output view will be like this

Copyright ©2010 – Your Blog Name

The real working part of this code is <?php echo date(‘Y’); ?> which will appear the current year as it is update on the website server.
Note: But if you change your theme anytime during don’t forget to check and add this code to your new theme if its not already added there.

I hope you would find this useful to let you save time remembering and updating the notice in the end of each year.




Subscribe Now

If you enjoyed this post, you will definitely enjoy our others. Subscribe to the feed to get instantly updated for those awesome posts soon to come.

{ 4 comments… read them below or add one }

Alison Moore Smith January 6, 2010 at 6:35 am

I could kiss you!

I had my sites set up to auto update years ago and then in an a redesign, I forgot how I’d set it up. Can’t tell you if this is the same method, but I’m very glad to have a way to get this auto update again.

Thanks for the handy tip!

Reply

Hami January 6, 2010 at 10:56 am

Hey Alison this is the same method as its the easiest one for any body even my those friends with low coding skills. I am glad it helped you.

Reply

Karen @ Blazing Minds January 6, 2010 at 10:46 am

A handy tip for all WordPress users, I’ve implemented this into my blog and it was so easy to do, so I recommend everyone to add this code to their WP blogs, thanks for the tip ;)

Reply

Hami January 6, 2010 at 10:57 am

That’s great. Good you shared with our readers that it helped you.

Reply

Leave a Comment

CommentLuv Enabled

Previous post:

Next post: