I am using wordpress_get_archives to retrieve a monthly listing of dates for posts happen to be published during my custom publish type 'download'.

But it's no longer working, things i am doing wrong?

I'm using workpress 3.3

Thanks

CODE

<?php   $args       = array(

    'post_type'     => 'download',
    'type'          => 'monthly',
    'show_count'    => '1'

); ?>

<?php wp_get_archives( $args ); ?>


This Is The Way I REGISTERED MY CUSTOM Publish TYPE FOR REFERENCE

// Downloads Post Type
add_action( 'init', 'create_post_type' );
function create_post_type() {
    $args = array(
        'labels' => post_type_labels( 'Download' ),
        'public' => true,
        'publicly_queryable' => true,
        'show_ui' => true, 
        'show_in_menu' => true, 
        'query_var' => true,
        'rewrite' => true,
        'has_archive' => true,
        'capability_type' => 'post',
        'hierarchical' => false,
        'menu_position' => null,
        'taxonomies' => array( 'group' ),
        'supports' => array('title',
            'editor',
            'author',
            'thumbnail',
            'excerpt',
            'comments'
        )
    ); 

    register_post_type( 'download', $args );

}

wordpress_get_archives( ) doesn't support 'post_type' being an argument.

There's attorney at law [here][1]: http://wordpress.org/support/topic/archive-list-and-page-for-custom-post-types-mysql?replies=9 about hacking in support for this. The content includes a couple of links off and away to another solution utilizing a filter that is put on the sql query for choosing posts to incorporate in the archives result. Searching at just how the filter is used generally-template.php it will work.