Home › Forums › General Issues › update_field issue › Reply To: update_field issue
Before you do the update_field. If you output $value, does it return anything?
Have you tried adding the post ID to the update_field to see if that works?
update_field($field_key, $value, $element->ID);
I assume the closing tag for the foreach isn’t included in the above code?
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.