WordPress.org

Ready to get started?Download WordPress

Forums

Why is the_date() showing 2010? (3 posts)

  1. charles_i
    Member
    Posted 3 years ago #

    I am using the_date() in my footer and it's displaying 2010. I have Custom set to 'Y' in my control panel and it says 2011 there but not on my web pages.

    Charles

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    the_date(); would show the publish date of a post - if you want the actual date, try and use echo date(); with the appropriate parameter:
    http://php.net/manual/en/function.date.php

  3. charles_i
    Member
    Posted 3 years ago #

    That did it. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.