Does your WordPress website date itself? Your website may be visually appealing and responsive but there may be one thing holding it back. Learn how one small change can keep your WordPress website up-to-date year after year.
So What’s The Issue?
The copyright year. More often than not I come across beautifully designed websites that have 2015 as the copyright. If the year is hardcoded in your theme and it’s January this would be acceptable but should be addressed. If it’s the end of August — which it is and is what inspired this post — that’s unacceptable.
So What’s The Fix?
Echo the PHP date function. This function will return a formatted string based the characters provided. For example, use the following PHP code to display the current four digit year:
This will allow you to forget about the copyright date as it will update with each new year. Scroll to the bottom of this page to see how this code will look on the front end of your website.
Is your website displaying the wrong year? If it is leave a comment below or send a message — I’d love to help