Dates above instead of by post. (5 posts)

  1. shanest
    Posted 11 years ago #

    What's the method used here to put the dates above all posts that were posted that day and then the previous day and so on? Thanks, Shane

  2. Mark (podz)
    Support Maven
    Posted 11 years ago #

    Where you have the_date, change that to the_time

  3. shanest
    Posted 11 years ago #

    I mean I need to do a loop where all the posts from a certain date are displayed under a heading that reads out that date. I just don't know the specific variables and/or tables that WordPress uses, so I was wondering if someone could provide a simple code to insert to do this. An example of what I want is http://www.xerocool.zsxonline.com/

  4. Beel
    Posted 11 years ago #

    That is the default display in WP using the_date(). Using:
    <?php the_date('', '<h2>', '</h2>'); ?>
    somewhere at the top of the loop will only show the date once with all posts on that date below it.

  5. shanest
    Posted 11 years ago #

    Thanks, just what I was looking for!

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.