I think you'll might help :-) I have seen a couple of solutions around but nothing quite accomplishes things i need.

I have to personalize the creation of wordpress_get_archives (or similar) to create a listing of links towards the relevant archive pages such as the following (the amounts in brackets being the publish counts):

  • Today (10)
  • Yesterday (1)
  • Now (13)
  • A Week Ago (1)
  • This Month (17)
  • Recently (14)
  • This Season (200)
  • This Past Year (11100)

I've discovered this function within an old theme but modifying this to obtain things i require is a large from my league.

function custom_archives(){
    global $wpdb;
    $querystr = "   SELECT YEAR(post_date) AS 'year',
                    MONTH(post_date) AS 'month',
                    count(ID) as posts FROM wp_posts
                    INNER JOIN wp_term_relationships ON(wp_posts.ID = wp_term_relationships.object_id)
                    INNER JOIN wp_term_taxonomy ON(wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id)
                    WHERE wp_term_taxonomy.taxonomy = 'category'
                    AND wp_posts.post_status = 'publish'
                    AND wp_posts.post_type = 'post'
                    AND post_date >=DATE_SUB(NOW(),INTERVAL 12 MONTH)
                    GROUP BY YEAR(post_date), MONTH(post_date)
                    ORDER BY post_date DESC";

    $years = $wpdb->get_results($querystr);
    echo '<ul>';
    foreach ( (array) $years as $year ) {
    $date =mysql2date('F o', $year->year.'-'.$year->month, $translate = true);
    echo '<li><a href="'.get_bloginfo('url').'/'.$year->year.'/'.sprintf("%02d", $year->month).'/">'.$date.'</a> ('.$year->posts.')</li>';
    echo '</ul>';

If anybody has been doing this and may help I'd be very grateful!

Thankyou ahead of time,