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!
CPT registration is coming to ACF! We demoed the new feature during the most recent session of ACF Chat Fridays. Check out the summary for the details. https://t.co/k2KQ3WWBAz
— Advanced Custom Fields (@wp_acf) March 7, 2023
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.