It’s been a while since the new year has passed and I have seen some sites that still have last year’s copyright on their WordPress blog.
- Note: This is usually found in the footer and sometimes in the sidebar or header.
Here is a code that will keep you from worrying about changing the copyright year on your WordPress blog.
For Thesis WordPress Theme
If you are using Thesis, you can enter this code in the Thesis custom_functions.php (or wherever else you have placed your blog’s copyright notification):
echo '<p>Copyright ';
echo ' © ';
add_action('thesis_hook_footer', 'copyright', '09');
For Any WordPress Theme
If you are using another WordPress theme, then you can place this code in your footer.php file (or wherever else you have placed your blog’s copyright notification):
<p>Copyright <?php echo get_bloginfo(); ?> © <?php echo date(“Y”); ?></p>
Now you never have to worry about changing your copyright year in your WordPress blog (as long as you are using a current theme).
Find this hack useful? Share it with your friends on Facebook, Twitter, or Google Plus!