get_results("SELECT DISTINCT YEAR(post_date) AS year, MONTH(post_date) AS month, count(ID) as posts FROM $wpdb->posts WHERE post_date != '0000-00-00 00:00:00' AND post_status = 'publish' GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC"); $months_array = array ( '1' => 'January', '2' => 'February', '3' => 'March', '4' => 'April', '5' => 'May', '6' => 'June', '7' => 'July', '8' => 'August', '9' => 'September', '10' => 'October', '11' => 'November', '12' => 'December' ); ?>
year&monthnum=$month->month"); echo ''.$months_array[$month->month].' '.$month->year.''; echo '
    '; while (have_posts()) : the_post(); echo '
  • '.get_the_time('j').': '.get_the_title().'
  • '; endwhile; echo '
'; } ?>