Web design & Internet tutorials
Search the site...
Home» Tutorials » CMS » Never have an outdated copyright date again

Never have an outdated copyright date again

Posted by Janine Warner - April 22, 2013 - CMS, Content Strategy, Tutorials, Web Design, WordPress

Ever notice how many websites and blogs have a copyright message at the bottom of the page that is still set to last year — or worse, several years ago?

Here’s a quick easy trick to make sure that never happens to you.

In the copyright field, instead of entering a date, like 2013, enter this piece of code:

 <?php echo date(‘Y’); ?>

That nifty little PHP snippet will automatically put the current year in your copyright every time. And if you want to show how long you’ve been around, you can still use a date range by entering the year you first published your site, followed by the auto date code.

For example this is the code I use at the bottom of my site, and how it appears:

@ Copyright 2001 – 2013. All rights reserved. DigitalFamily.com

automatically-set-the-date-in-wordpress

Now you just have to find the time to keep the rest of your website or blog up to date.

You’ll learn many more great WordPress tips in Janine’s new creativeLIVE course: Create Websites the Easy Way with WordPress

2 comments on “Never have an outdated copyright date again”

  1. Alessandra says:
    August 17, 2013 at 8:10 am

    Great tip!
    I noticed that you have an extra letter i in DigitalFamily.com in you copyright (and in the post) and wonder if it is intentional or maybe a typo?

  2. Janine Warner says:
    September 18, 2013 at 11:28 pm

    Thanks Alessandra! I so appreciate it when people point out my typos. Everyone needs an editor. I believe I’ve fixed that one now, but please let me now if you find others. Thank you!

Recent Posts

  • Google Analytics for Creative Professionals – new class on Pluralsight
  • Follow the cursor JavaScript sample
  • Part Four: Tools that let amateurs look like professionals
  • Part Three: Influence, Klout and finding what’s hot
  • Best social media tools part 2: Twitter, Instagram and Pinterest
  • How to add sound to a website
  • The advantages of a dynamic website, such as WordPress
  • How do you preserve Google rankings when you redesign a WordPress site ?
  • Browser Testing Tools
  • My updated Facebook Template works on small and large screens




© 2001 - 2020 All rights reserved. DigitalFamiliy.com | Terms & Conditions of Use | Privacy Policy

This is a demonstration store. No physical products will be shipped. Dismiss