WordPress.org

Forums

[resolved] Having a Date Header above Posts of that Month (3 posts)

  1. noelgreen
    Member
    Posted 7 years ago #

    I'm wanting to show the month as a large <h3> title above all the posts for that month in my pages.

    So, for example:
    ===========================

    MARCH 2008

    Post 1 for march 2008
    text text text text text

    Post 2 for march 2008
    text text text text text

    Post 3 for march 2008
    text text text text text

    FEBRUARY 2008

    Post 1 for february 2008
    text text text text text

    Post 2 for february 2008
    text text text text text

    ===========================

    Is this possible?

  2. noelgreen
    Member
    Posted 7 years ago #

    This was easy... sometimes jet lag is bad for programming. :)

  3. Simon Wheatley
    Code for the People
    Posted 7 years ago #

    In case others come across this post wanting to do this, I wrote an Intermittent Date Headers function to do this (you can grab it by clicking on the link above).

Topic Closed

This topic has been closed to new replies.

About this Topic