WordPress.org

Ready to get started?Download WordPress

Forums

date header like MT? (3 posts)

  1. donzacharias
    Member
    Posted 8 years ago #

    There must be an easy way to get a Date Header like MT has... it is only displayed at the start of a container of posts from each day, like

    *June 29, 2006
    Posted at 11:00 am
    Post post

    Posted at 8:00 am
    First post on 6/29

    *June 28, 2006
    Posted at 11:59 pm
    My last post on 6/28

    and so forth... Inside the Loop, how do I compare the_date to the_date of the previous iteration of the loop? Thanks!

  2. You don't as it's already done. the_date() automatically only outputs stuff if the date has changed since it was last used.

    http://codex.wordpress.org/Template_Tags/the_date

  3. donzacharias
    Member
    Posted 8 years ago #

    Sweet!!

    I was using the_time even though I said I was using the_date, so I guess that makes me a liar

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.