I want to build my own archives page that displays in the format that I want. I want to show all post title, order by month and year. It should look like this :
December 2011 Post title 1 3 comments Post title 2 4 comments
November 2011 Post title 1 2 comments
I’m having trouble figuring out the specifics of the loop that needs to be created for getting the post title and it’s comments order by month.
This is the archives page example I want to build http://spyrestudios.com/archives/.
Please help.
Thanks in advance.
this may help you.
http://codex.wordpress.org/Creating_an_Archive_Index
You can use WP_Query to do that
Try this code(i don’t tested it):