WordPress: Add dynamic footer copyright text with links

Do you want to add a copyright link in the footer of your WordPress website? You can edit the footer.php file of the theme and add the text by wrapping it within a paragraph, division or span HTML tag. However, it will be a static text. You can add an auto-updating footer text with year that can be used for any website.

Paste the following code in the footer section of your theme.

<p><a href="<?php echo home_url('/'); ?>"><?php echo get_bloginfo('name'); ?></a> - <?php echo get_bloginfo('description'); ?></p>
<p>Copyright &copy; 2012 - <?php echo date('Y'); ?></p>