WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] PHP Date Tag (6 posts)

  1. FireFox
    Member
    Posted 8 years ago #

    Hi

    In the index.php page and within the meta tag, how do you set the PHP Date Tag to insert the date for every post entries?

    This is my Date Tag:

    <?php the_date(''); ?>

    This is my site:

    http://www.selfcaretalk.com

    I only get the date for the latest entry but not the previous one(s).

    What should I change?

    Thanks and well appreciate it.

  2. Beel
    Member
    Posted 8 years ago #

    the_time('m/d/Y')

    the_date only displays once for each day. You might read up on the template tags... http://codex.wordpress.org/Template_Tags/the_date

  3. FireFox
    Member
    Posted 8 years ago #

    I don't really want the time, just the date for each entries.

  4. FireFox
    Member
    Posted 8 years ago #

    there must be a way around this..

    Engadget has the date on top with several entries for a particular day.

    http://www.engadget.com

  5. Beel
    Member
    Posted 8 years ago #

    Right. Read the page I linked to (or just use what I posted).

  6. FireFox
    Member
    Posted 8 years ago #

    Yeap, it was the the_time() tag that did the trick:

    <?php the_time('F j, Y'); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags