Any kind of custom post type in the front page and in the archive listing
function namespace_add_custom_types( $query ) { if( is_category() || is_tag() && empty( $query->query_vars[‘suppress_filters’] ) ) { $query->set( ‘post_type’, array( ‘post’, ‘post_type1’, ‘post_type2’ )); return $query; } } add_filter( ‘pre_get_posts’, ‘namespace_add_custom_types’ ); it worked realy good.