Show Two custom Post type and their posts on category page


I have Two Custom Post Types “Article ” & “News” and they both use same categories like [ audit , income , tax] . I want when i open audit category page then the post showsn like below: enter image description here

the code i already tried on archieve.php but isnt working:

<?php      $  cats = get_the_category();     $  args = array(         'post_type' => 'articles',         'post__not_in' => array( get_the_ID() ),         'posts_per_page' => 5,         'cat'     => $  cats[0]->term_id,         'meta_query' => array(                     array(                     'key' => 'recommended_article',                     'value' => '1',                     'compare' => '=='                         )                     )     );     $  query = new WP_Query( $  args );  ?>    <?php if( $  query->have_posts() ) : while( $  query->have_posts() ) : $  query->the_post(); ?>     <!--HTML-->  <?php endwhile; endif; wp_reset_postdata(); ?>