Home › Forums › General Issues › Updating sub field value in nested repeater and row using acf/save_post › Reply To: Updating sub field value in nested repeater and row using acf/save_post
After the first have_rows() loop you no longer need to supply the post ID
// post id not needed in sub loops if( have_rows('codegroep') ): while( have_rows('codegroep') ) :
Other than this the only reason I know of that the row cannot be update is that there are not rows to begin with and have_rows() is false. You cannot use have_rows() loops to update repeaters that have no values/rows.
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!
🤔 Curious about the ACF user experience? So are we! Help guide the evolution of ACF by taking part in our first ever Annual Survey and guarantee you’re represented in the results. https://t.co/0cgr9ZFOJ5— Advanced Custom Fields (@wp_acf) May 8, 2023
© 2023 Advanced Custom Fields.