produto-studio-tipo-1
// WP_Query arguments
$args = array(
'post_type' => array( 'produto' ),
'post_status' => array( 'publish' ),
'nopaging' => true,
'posts_per_page' => '200',
'order' => 'ASC',
'orderby' => 'title',
'tax_query' => array(
'relation' => 'AND',
array(
'taxonomy' => 'tipo',
'terms' => 'studio-tipo-01',
'field' => 'slug',
),
),
);
// The Query
$query_produto = new WP_Query( $args );
// The Loop
if ( $query_produto->have_posts() ) {
while ( $query_produto->have_posts() ) {
$query_produto->the_post();
// do something
}
} else {
// no posts found
}
// Restore original Post Data
wp_reset_postdata();