Home › Forums › Add-ons › Repeater Field › Update sub field before/after save post › Reply To: Update sub field before/after save post
Perhaps someone can tell me why this code:
$oldValue = get_sub_field('project_current_status');
…is returning the last of all of the ‘project_current_status’ fields (total)!
My understanding is that it should only be returning the field referenced inside of the ‘have_rows’ loop.
Is this not correct? Thank you.
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.