Home › Forums › Add-ons › Repeater Field › Repeater vs Select Multiple Values › Reply To: Repeater vs Select Multiple Values
Something is wrong in your conversion, you are storing the entire uer object. What you want to store is just the information that you want to search by, for example the ID if that’s what you want to do the query on, or the persons name, or whatever. Then you can do
'meta_query = array(
array(
'key' => 'related_trustee_wp',
'value' => array(1, 7, 2),
'compare' => 'IN'
)
)
The problem with the repeater is not the meta_value, it is the meta_key. Because they are not all the same then you must to a “LIKE” query on the meta_key column. You can find information on doing this here https://www.advancedcustomfields.com/resources/query-posts-custom-fields/. This is what I refuse to do.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.