I'm while using getarchives_where hook to filter and display only archives for any custom publish type.

add_filter( 'getarchives_where' , 'getarchives_where_filter' );

    function getarchives_where_filter( $where , $r ) {  
      $post_type = 'blog-posts';
      return str_replace( "post_type = 'post'" , "post_type = '$post_type'" , $where );
    }

It mostly works - It shows 'November 2011' (I have only one custom publish for November) however the connect to November 2011 continues to be from the archives for general posts.

Rather than example.com/blog-posts/2011/11 it transmits me to example.com/2011/11

How do i fix this?

I ought to point out that I Are-saved' my permalinks which did not assist the problem.

Any help could be appreciated.

Thanks

I believed it. I needed to re-save my permalinks increase the .htaccess file using the code Wordpress provided.