The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Group query_posts results by month?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #40961


    So I’m working on the archive section for a WordPress blog, and am using query_posts to display all the posts and also using some pagination. However I’d like to show the posts grouped by month. So like :

    September 2012:
    – Post 1
    – Post 2

    August 2012
    – Post 1
    – Post 2


    Here’s the code I’m using : (The list is there 2 times because as you may see I’ve added the functionality of switching between an image viewer and a list viewer.)


      ID)), 0, 200); ?>…

    • ” class=”overlay-btn”>

    Anyone have any ideas of how to group the results by the month they were published?
    Thanks in advance :)

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.