Home › Forums › General Issues › Strange behaviour with an ACF list › Reply To: Strange behaviour with an ACF list
Hello John,
the problem only occurs with existing rows…
Explained in other words:
When I use get_sub_field after I used update_sub_field,
I get the old value from before the script,
not the new just updated value.
When I use add_row,
everything done before with update_sub_field is gone.
It seems to me that a cache is used.
This only happens if the steps are in the same php script execution.
If I do it later / on another page, it works fine.
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.