|

How to add Automatic current year in your footer.php

how to display current year in footer automatic

Sometimes you need to add information in every WordPress theme like copyright,company and year information.

The easiest way is to add this code at the location in your footer.php where you want to show the current year.

<?php echo date('Y'); ?>

Whith this simple WordPress snippet you will display the current year after or before the company information in your footer.php.

Example here:

Display copyright information and current year with this simple snippets.

<div>
&copy;  <?php echo date('Y'); ?>  Your Company name
</div>

The results will be like this © 2014 Your Company name

Facebook Comments

Leave a Reply

Your email address will not be published. Required fields are marked *