I'm trying to use meta_query parmater to get posts with values between two values, the problem is it doesn't work for all the numbers.
This is work:
$array[] = array(
'key' => 'd_weight',
'value' => array(0,0.5),
'compare' => 'BETWEEN',
'type' => 'NUMERIC'
);
But for some reason this doesn't work:
$array[] = array(
'key' => 'd_weight',
'value' => array(0.1,0.5),
'compare' => 'BETWEEN',
'type' => 'NUMERIC'
);
The problem only occurs with numbers less than 1, on bigger number there is no problem...
Thanks for the help.