Keep the year in your website footer up to date – How to

Learn how to always keep the copyright year up to date in your website footer – keeping you from coming back to update it every year!

Add the Year to your website footer Blog cover

Featured Image

Place this code within the functions.php file of your child theme:

// Display Current Year Shortcode
 function year_shortcode() {
   $year = date('Y');
   return $year;
 } add_shortcode('year', 'year_shortcode');

Then, where you want to display the current year, place [year].

Similar Posts

Leave a Reply

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