Wordpress: Render 2 terms in a taxonomy page

18 Views Asked by At

In wordpress, I want to render more than one term, in a taxonomy page in wordpress but its not woking at all. Is there a way to do so? If its not possible to loop, is there a url that renders two terms?

$query_args = array(
              'post_type' => 'shop',
              
              'tax_query' => array(
                'taxonomy' => 'floor',
            'field' => 'slug',
            'terms' => array('1f', 'b1f'),
            'operator' => 'IN',
                ),
            );
            $query = new WP_Query( $query_args );
            if ( have_posts() ) : while ( have_posts() ) : the_post();
0

There are 0 best solutions below