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');
print_r($roster);
update_field('cb_roster', $roster);
And then after that script runs, I check the field:
$roster = get_field('cb_roster');
print_r($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.
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.