I wish to build my very own archives page that shows within the format which i want. I wish to show all publish title, order by month and year. It will seem like this :


December 2011

Publish title 1

3 comments

Publish title 2

4 comments


November 2011

Publish title 1

2 comments

I am getting trouble determining the more knowledge about the loop that should be produced to get the publish title and it is comments order by month.

This is actually the archives page example I wish to build http://spyrestudios.com/archives/.

Help. Thanks ahead of time.

You should use Wordpress_Query to achieve that

Do this code(i do not examined it):

<?php
$date = '';
$query = 'posts_per_page=9999';
$queryObject = new WP_Query($query);
// The Loop...
if ($queryObject->have_posts()) {
    while ($queryObject->have_posts()) {
        $queryObject->the_post();
                $my_date = the_date('F j', '', '', FALSE);
                if ($my_date!=$date){
                    echo '<h2>'.$my_date.'</h2>';
                    $date = $my_date;
                }
                echo '<h3>';
                the_title();
                echo '</h3>';
                echo '<span>';
                comments_popup_link('No Comments »', '1 Comment »', '% Comments »');
                echo '</span>';
    }
}
?>