Add code to automatically update copyright date in footer

  • In Progress
    Posted in: Aegaeus WP Theme  
  • Customer
    tigershark
    March 8, 2015 at 8:04 pm #31293

    I’d like to make the copyright year update automatically.

    Here’s some code to do it: http://www.updateyourfooter.com/

    I’d use this:

    © <?php
    $fromYear = 2008;
    $thisYear = (int)date(‘Y’);
    echo $fromYear . (($fromYear != $thisYear) ? ‘-‘ . $thisYear : ”);?> Company.

    Where in footer.php could I add it? How can it be protected from being overwritten in future WP upgrades?

    Thank you!

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.