Hi,
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
Etc.
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.)
Anyone have any ideas of how to group the results by the month they were published?
Thanks in advance :)