Home › Forums › Add-ons › Repeater Field › Update_field for user field › Reply To: Update_field for user field
Unfortunately this isn’t the case. To test if these rows even exist i tried this:
if (function_exists('have_rows')) {
while (have_rows('field_61c18b86ee6fd')) {
dd('test');
}
}
This did not return the expected ‘test’, ‘field_61c18b86ee6fd’ is the key of the repeater. I tied to use the sub fields key and this also didn’t return the expected ‘test’. I wondered what it could be until i found this.
In the database there is a related_player_0_reservation_participant
and a _related_player_0_reservation_participant
the related_player_0_reservation_participant
was not filled with an id. Updating this field like so: update_field('related_player_0_reservation_participant', 1, 204);
did the trick for me. Anyways thanks for your help.
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.