Hi, Is there a way to store metadata value from a cloned field, in multiples entries into the DB, instead of only one entry with values into an array ? I would like the same effect as if I would have used 'add_metadata( $meta_type, $object_id, $meta_key, $meta_value, $unique )' with the '$unique' parameter set to FALSE.
I would need this because when we build a WP_Query that search for a value on a cloned field, it can find the value because the values are stored as an array serialized instead of multiple entries in the post_meta table in the MySql Database. And I can't use the 'IN' compare argument....
$args = array(
'post_type' => 'MyPosType',
'meta_key' => 'color',
'meta_value' => 'blue');
$query = new WP_Query( $args );
The only way that I have is to search only on 'meta_key' and then after use 'in_array' function trough a 'foreach' loop... but this is not really a efficient solution...