Support

Account

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.