New Year on your blog means there’s a number of jobs you must do, little things, such as set goals for the year, write new content & update your templates. A lot of these jobs can be automated, one such one is your copyright notice at the bottom of your blog.

I am not a lawyer, but the second you create content & unless you state otherwise, it is under copyright, so it’s a good idea to have something that states that the copyright is yours. Keeping the date upto date is one of those jobs that is easily forgotten, so to automate it you need to put the following line in your footer.php file in your template:-


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

Nice and simple. A quick explanation for each of the elements in the code:-

  • &copy; - The HTML code for the copyright symbol: ©
  • bloginfo(‘name’) - The wordpress template tag for displaying the name of the blog.
  • date(‘Y’) - The current year

That’s it! You don’t have to update your footer copyright ever again.

If you want to include your year of formation in the copyright notice, put this in your footer (assuming your blog was formed in 2004).


&copy; <?php bloginfo('name'); echo "2004-". date('Y'); ?>

Again, very simple.

This can be put in any of the template files in your blog, but traditionally it’s put in the footer. Any questions & I’ll do my best to answer them.

Tags: , , | Comments: 7 Comments

 

Related Posts


    Fatal error: Call to undefined function related_posts() in /home/gospelrh/public_html/wp-content/themes/mergerofjuneandjuly/single.php on line 28