Auto Update Copyright Year In ExpressionEngine

A couple years ago, we wrote an entry on using PHP to auto update the copyright year on websites built on WordPress and other PHP websites. However, if you are building a site in ExpressionEngine, it is advised to utilize EE code when possible over PHP.

Allowing a copyright year to auto update is easy to do in ExpressionEngine thanks to the current_time variable, which still functions using PHP date variables.

Simply drop the following in your theme and you are all set.

Copyright © {current_time format="%Y"}

We wish everyone a happy and successful 2012!

Stay In The Loop

Social Gathering

Join our newsletter to get notified about the happenings here at J Taylor Design.