Home › Forums › Front-end Issues › Update taxonomy term field when a new post is published on the frontend › Reply To: Update taxonomy term field when a new post is published on the frontend
The reason that the value is not saved could be because your filter is never run.
What are the setting for acf_form()
?
From looking at your code, you are depending on ACF to create the new post. ACF is probably creating the new post before your filter runs and this means that when your filter runs $post_id != "new"
.
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.