Omatan, couple suggestions:
Advanced Custom Fields allows for relationship field types, are you using that?
Have you tried "compare"=>"IN" instead of "compare" => "LIKE"?
What about "type" => "NUMERIC"?
The reason you are running into a problem I can see are your type parameter for the meta query is set to char (that’s the default). 45 is actually LIKE 345 in terms of a char based LIKE comparison, because it is part of the string 345. NUMERIC will compare the integers
An easier way to accomplish this though might be with a tax_query and some taxonomy to achieve post association.
Hope that helps, let me know if you have any questions.
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Using Meta query to find value in Custom Field array’ is closed to new replies.