This code works for my archive news page .
If you are asking this for a newly created custom post type then you have to include that specific post name like this –
function custom_post_date_archive($query) {
if ($query->is_date)
$query->set( 'post_type', array('post', 'news','rassegnastampa') );
remove_action( 'pre_get_posts', 'custom_post_author_archive' );
}
add_action('pre_get_posts', 'custom_post_date_archive');
ie, here –
$query->set( 'post_type', array('post', 'news','rassegnastampa') );
you have to add the required custom post name.