Don't edit the wordpress files.
Use this instead and place it in your functions.php file in your
template folder (if you don't have one, create one)....
function include_custom_post_types( $query ) { global $wp_query;
if ( is_category() || is_tag() || is_search() || (is_archive())) {
$post_types = array('posttype', 'posttype');
$custom_post_type = get_query_var( 'post_type' );
if ( empty( $custom_post_type ) ) $query->set( 'post_type' ,
$post_types );
}
return $query;
}
add_filter( 'pre_get_posts' , 'include_custom_post_types' );
----------------------------------------------
and replace the 'posttype' from this line with => $post_types =
array('posttype', 'posttype'); <= with your post types.