WP_Query not working with tax_query and woocommerce product attribute
Im trying to make ajax filter by attributes for woocommerce. The problem is query giving empty result, when I'm adding tax_query. This code goes in functions.php $newquery = new WP_Query( array( 'post_type' => 'product', 'posts_per_page' => '22', 'post_status' => 'publish',…