Compare meta queries
-
Hi,
can you please help me I have this code
if ($search_get['cena'] == '0 - 49.999') { $meta_query_cena = array( 'key' => 'cena', 'value' => '49', 'compare' => '<=', 'type' => 'numeric' ); } elseif ($search_get['cena'] == '50.000 - 99.999') { $meta_query_cena = array( 'key' => 'cena', 'value' => '99', 'compare' => '<=', 'type' => 'numeric' );and first is work okay.. but for second one I need between 50 – 99, its show me all articles less than 99.. include 33 for example.. but I need between 50 – 99.. can somebody help me ..
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Compare meta queries’ is closed to new replies.