WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Automatic copyright year in footer (5 posts)

  1. iyamdman
    Member
    Posted 2 years ago #

    I am working on a footer, and the text format of the footer is:

    '© 2011 GBS. All Rights Reserved.'

    What I want, is to 'pull' the 2011/YEAR from wordpress, so that the copyright year always equals the current year.

    I assume I would place the code in footer.php - but I don't know what the code would look like.

    Any help?

  2. Jackson
    Member
    Posted 2 years ago #

    Replace 2011 with:

    <?php echo date('Y'); ?>

    And yes, this would go in your theme's footer.php file.

  3. iyamdman
    Member
    Posted 2 years ago #

    Thank you sooooo much - that worked perfectly!!!

  4. Edward Caissie
    Theme Review Admin
    Posted 2 years ago #

    @iyamdman - If you really want to dress up your copyright statement this article might interest you: http://wpfirstaid.com/2011/06/dynamic-copyright-revisited/

  5. iyamdman
    Member
    Posted 2 years ago #

    Hi Ed - thanx, really good article!!

Topic Closed

This topic has been closed to new replies.

About this Topic