How to read taxonomy in loop?

I got it working here is the code:

...

<?php 

$term = get_term_by('slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ), get_queried_object()->term_id );

// $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;

$query = new WP_Query(array(
    'post_type' => 'recipe',
    'meta_key' => 'recipe_star_rating',
    'orderby' => 'meta_value_num',
    'order' => 'DESC',
   //  'paged' => $paged,
    'status' => get_query_var( 'term' ),
));

global $wp_query;

$total_results = $query ->found_posts;

echo '<h2>"'.$term->name . '" Recipes</h2>';
      
echo '<h4 class="tcount">'. $total_results . ' results</h4>';  
      
?>

<hr class="aloha" />
    
<?php $counter = 0;  while ($query->have_posts()): $query->the_post(); $counter++;  ?>

<div class="col-md-12 col-sm-6 col-xs-12">
<?php echo Chefscuisine_Template_Loader::load( 'recipes/grid' ); // $counter++; ?>
</div>
        
<? if ($counter % 3 === 0) { 
                echo '<div class="midad">Advert 336x280px Here!</div>';
} ?>
            
            
<?php endwhile; ?>

</div>
...