ShoutMeLoud – Shouters Who Inspire

Superlinks
≡ Menu
≡ Menu

Automatically update your WordPress blog copyright years

CW
Automatically update your WordPress blog copyright years
copyrightsymbol thumb

Blog Copyright

Its been a while since new year has passed and I have seen some of the blogs still having the last years copyright notification in their wordpress blog. (mostly in footer and some times in the sidebar as well or header as well).

Here is a little code that will keep you from worrying about changing the copyright years in WordPress blog.

For Thesis WordPress Theme

Since I am using thesis so for thesis-code  below can be used as is, in the thesis custom_functions.php or where ever you have placed your blog’s copyright notification.

function copyright(){
    echo '<p>Copyright ';
    echo get_bloginfo();
    echo ' &copy ';
    echo date("Y");
    echo '</p>';
}
add_action('thesis_hook_footer', 'copyright', '09');

For Any WordPress Theme

In case you happen to be using a WordPress theme other than thesis then you can place this code in your footer.php or where you  placed that copyright notification in your blog.

<p>Copyright <?php echo get_bloginfo(); ?> © <?php echo date(“Y”); ?></p>

Now you don’t have to worry anymore about changing your copyright years in blog (As long as you use your current theme).

  • Author Bio

  • Latest Post

Article by Shoaib Hussain

Shoaib has written 3 articles.

If you like This post, you can follow ShoutMeLoud on Twitter. Subscribe to ShoutMeLoud feed via RSS or EMAIL to receive instant updates.


{ 5 comments… add one }

  • Sagar Rai

    What if out PC year is different? Even than it works?

    Reply
  • Mahendra

    A very timely post. initially I have ignored importance of copyright. however yesterday I have seen a blog which is just reproducing all my articles with my image on his blog without permission.

    Could anybody help me how I can prevent him from doing so. ?
    thanks in advance for any help in this regard

    Reply
  • Windsor S.

    In my opinion, if you use this plugin then you’re too much lazy because you only need to update the copyright year once a year.

    Reply
  • TechOfWeb

    Instead of doin this, I wud prefer the manually inserting the static values as it just adds soem burder on server…

    Atul

    Reply
  • sudharsan @ technoskillonline

    Hi Hussain..
    Nice post..

    Reply

Leave a Comment