product query
// WP_Query arguments $args = array( 'post_type' => array( 'products' ), 'tax_query' => array( array( 'taxonomy' => 'category', 'terms' => array( 'plugins', 'themes' ), ), ), ); // The Query $productsquery = new WP_Query( $args ); // The Loop if ( $productsquery->have_posts() ) { while ( $productsquery->have_posts() ) { $productsquery->the_post(); // do something } } else { // no posts found } // Restore original Post Data wp_reset_postdata();