Home › Forums › General Issues › Editing an ACF field and submitting in $_POST › Reply To: Editing an ACF field and submitting in $_POST
The issue is that ACF is running to save the values in the ACF fields and then it is redirecting, probably before your other code to save other fields is running. What you need to do to create a filter/action for ACF and then run your other code for saving the other data in this action filter instead of where/when you are saving it. More than likely you could use an acf/save_post action https://www.advancedcustomfields.com/resources/acf-save_post/ and since it’s a front end form you could probably also use an acf/pre_save_post filter https://www.advancedcustomfields.com/resources/acf-save_post/, but I’d probably go with the first one in this case.
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.