Home › Forums › General Issues › Multi Select – Get all choices for Query Args › Reply To: Multi Select – Get all choices for Query Args
When I switch to term id for the field and use
$event_cats_ids = get_field('events_category');
var_dump($event_cats_ids);
I get this array
array(2) { [0]=> int(179) [1]=> int(180) }
So the situation is similar. I get an array. Using that in
'terms' => $event_cats_ids,
does not work. When I choose one local event I get the last virtual event. So I think this does not work.I need array(id, id),
based on variable input somehow.
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.