سلام استاد. میخاستم از سه آیتم برای فیلتر کردن روی محصولات ووکامرس به این شکلی که شما در این بخش پیاده کردین استفاده کنم. ولی کوئری زیر مشکل داره. میخاستم ببینم چرا کوئری ریسالت درستی برنمیگردونه:
$args = array(
'post_type' => ["product"],
'posts_per_page' => -1,
'post_status' => 'publish',
'author' => $_POST['user_id'],
'cat' => $_POST['post_term_id'],
'meta_query' => array(
array(
'key' => '_regular_price',
'value' => array($min_price, $max_price),
'type' => 'numeric',
'compare' => 'BETWEEN',
),
),
'tax_query' => array(
array(
'taxonomy' => 'product_cat',
'field' => 'term_id',
'terms' => $_POST['post_term_id'],
),
),
);
$the_query = new WP_Query($args);