AU
Size: a a a
AU
АП
AU
AU
AU
$all = new WP_Query( array( 'post_type' => 'product', 'fields' => 'ids', 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'posts_per_page' => '-1', 'tax_query' => array( array( 'taxonomy' => 'product_cat', 'field' => 'term_id', 'terms' => intval( $_GET['kd_cat'] ), 'operator' => 'IN' ) ) ) );
KL
KL
АП
A
AU
A
$all = new WP_Query( array( 'post_type' => 'product', 'fields' => 'ids', 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'posts_per_page' => '-1', 'tax_query' => array( array( 'taxonomy' => 'product_cat', 'field' => 'term_id', 'terms' => intval( $_GET['kd_cat'] ), 'operator' => 'IN' ) ) ) );
A
A
if( isset( $_GET['filter'] ) and intval( $_GET['filter'] ) == 1 ){
...
A
A
A
AU
function testing_woo_product_query( $q ){
$q->set( 'post__in', array_values( 168819, 158285 ) );
}
add_action( 'woocommerce_product_query', 'testing_woo_product_query' );
AU
AU
A