When I add a new WP_Query, everything works, but if I add a 'tax_query' with a taxonomy, it doesn't pull the posts. post_count would always be 0.
$products = new WP_Query([ 'post_type' => 'post', 'tax_query' => [ [ 'taxonomy' => 'show_product_on_only_premium', 'field' => 'slug', 'terms' => 'yes', 'operator' => 'AND', ] ] ]); echo var_dump($products);
I've played with the tax_query with different values and I've had no luck. This works on production but not locally and I can't figure out why. edit> my database has the taxonomy
Please help! Thank you in advance!