Home Forums General Issues Multiple Select User Field and update_field() Reply To: Multiple Select User Field and update_field()

  • Okay, here’s the ultimate test in my opinion, and I have it narrowed down to my approach being completely wrong. The only problem is, I don’t know why it’s wrong?

    If I run:

    $roster = get_field('cb_roster');
    update_field('cb_roster', $roster);

    And then after that script runs, I check the field:

    $roster = get_field('cb_roster');

    I get the output:
    Array ()

    What am I missing? To me, this is like being handed a box with a ball inside. I open the box, put the ball on the table. I put the ball back in the box, and now the box is empty…

    Any help is greatly appreciated.