WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] how to display date for each post (5 posts)

  1. mjh966
    Member
    Posted 8 years ago #

    We want to display date/time/author for all posts each day.

    Currently, our site displays the date/time/author for the first post of the day. Subsequent posts display only time/author.

    I think the fix is in my index.php, but I can't figure out what tweak to make. Can you help pls?

    Thanks. mjh

  2. skippy
    Member
    Posted 8 years ago #

    Edit your templates to use the_time() instead of the_date(). See the documentation for the_date()

  3. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Find the_date
    Replace it with the_time
    and be sure to have the correct Time format in Options.

    That help ?

  4. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Seven seconds ! I was beaten by 7 seconds :)

  5. mjh966
    Member
    Posted 8 years ago #

    My happiness =
    <?php the_time('F j, Y'); ?> at <?php the_time('g:i a'); ?> by <?php the_author() ?>
    Looks great. Date and time display on all posts. Yay.

    http://blogs.timesunion.com/wartime/

    Thanks so much.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags