Home › Forums › Front-end Issues › Front end post creation and update on same page › Reply To: Front end post creation and update on same page
I suspect that you’re creating a new post each time rather than updating anything, but that just a guess. I say this because your pre_save_post filter does no checking to see if the post_id is for a new post or an existing post. Your filter should only be run when the post_id is “new” or whatever value you’re using for the acf form for the new post creation see https://www.advancedcustomfields.com/resources/acf-pre_save_post/ and https://www.advancedcustomfields.com/resources/using-acf_form-to-create-a-new-post/
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.