if I make the query of
$apartments = get_posts( array ( 'post_type' => 'apartment','meta_key' => 'bedrooms','meta_value'=> array(4,12) , 'compare' => 'BETWEEN' , 'type' => 'NUMERIC'));
I only get 4 and 8 bedroom apartments.
if I make the query of
$apartments = get_posts( array ( 'post_type' => 'apartment','meta_key' => 'bedrooms','meta_value'=> array(4,5,6,7,8,9,10,11,12) , 'compare' => 'IN' , 'type' => 'NUMERIC'));
I also get 7 bedroom ones...
Why is the top item not seeing the 7 bedroom apartments? Am I not using BETWEEN properly?
Thanks