Get Posts by Category, Tag , and CPT Taxonomy

How to print only those posts which have Category, Tag, CPT Taxonomy.

I have tried out with this code but nothing prints. To print posts I used SS [commonposts category="2" tag="3" taxonomy="company" tax_term="4" posts_per_page="5"]

function common_cats($  att){     $  args = array(     'post_type'=> 'post',     'category'    => ['category'],     'tag'    => ['tag'],     'taxonomy'    => ['taxonomy'],     'tax_term'    => ['tax_term'],     'posts_per_page' => ['posts_per_page']      );                 $  the_query = new WP_Query( $  args );    if($  the_query->have_posts() ) :      while ( $  the_query->have_posts() ) :       $  the_query->the_post();        $  output .= "<a href=".get_permalink().">.the_title().</a>";   endwhile;      wp_reset_postdata();  else:  endif; } add_shortcode('commonposts', 'common_cats'); 

Appreciate everybody’s effort.