meta_query ‘compare’ => ‘IN’ not working

Posted by Prem Tiwari | Updated on

There’s no easy way to search serialized values in a meta query. If the list of values isn’t crazy long, potentially you could set up multiple meta queries:

Or if you wanted to get super fancy, you could set it up dynamically:

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers