• I have seen this question asked a couple of times, but my search capabilities appear limited as I haven’t seen an answer to it.

    Can I use The Loop, and specifically the query_posts to return the results grouped by date (or day)?

    I could not find much in the Codex that specifically talks about the parameters query_posts can take, and what is returned.

    Or does this require some resort of the results prior to display?

    Or even some custom code in the loop to show the date/day when that changes in the timestamp, and to suppress it when the date/day is the same?

Viewing 1 replies (of 1 total)
  • Thread Starter hrekum

    (@hrekum)

    ok… I got off my lazy ass and did some coding. It isn’t pretty but to get grouping by day I did a check for a date change between posts, and where there was one, added a header. For fun I added the Dunstan’s Time Since plugin with a small hack to only show days (not hours or minutes). And then the cherry was to use a different background for the most recent day entries.

    check it out at Elebee.

Viewing 1 replies (of 1 total)
  • The topic ‘Group by date (1.5)’ is closed to new replies.