I have finally found a solution and for anyone interested, here is the working code :
<?php // The Query
if (is_tax() || is_category() || is_tag() ){
$qobj = $wp_query->get_queried_object();
// concatenate the query
$args = array(
'post_type' => 'houses',
'posts_per_page' => -1,
'orderby' => 'title',
'order' => 'ASC',
'tax_query' => array(
array(
'taxonomy' => $qobj->taxonomy,
'field' => 'id',
'terms' => $qobj->term_id
)
)
);
}
$area_query = new WP_Query( $args );
if ( $area_query->have_posts() );
while ($area_query->have_posts()) : $area_query->the_post();
$photo = get_the_post_thumbnail();
$titre = get_the_title();
$link = get_permalink();
$address = get_field('address');
$size = "full"; ?>
<div class="container">
<div class="row">
<div class="vc_col-sm-3">
<div class="housesinfo">
<a href="<?php echo $link; ?>"><figure class="fighouse">
<?php echo $photo; ?>
<h2 class="titlehouse allhouses"><?php the_title(); ?></h2>
<div class="addresspointer">
<i class="qode_icon_font_awesome fa fa-map-marker qode-ili-icon-holder transparent" style="color: #2c4458;"></i>
<p><?php echo $address; ?></p>
</div>
</figure></a>
<p class="link-read-more allhouses qbutton"><a href="<?php echo $link; ?>">Read More</a></p>
</div>
</div>
</div>
</div>
<?php endwhile;
wp_reset_postdata(); ?>