Home › Forums › Add-ons › Options Page › Query posts by options page custom field › Reply To: Query posts by options page custom field
If I get what you’re trying to do correctly, I think that you’ll need to have the user field both the options page and the user page.
Set the user select field on the options page to return ID. This will return an array of user ID values.
Then change your meta query to
'meta_query' => array(
array(
'key' => '',
'value' => $ids,
'compare' => 'IN'
),
),
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.