Home › Forums › General Issues › Set Default Taxonomy › Reply To: Set Default Taxonomy
What you’re doing will only set the terms when the post is saved and you won’t see it until the next time the edit page is loaded. These things happen after the post is saved.
In order to preset a taxonomy field with a term you need to use an acf/prepare_field filter https://www.advancedcustomfields.com/resources/acf-prepare_field/ and set $field['default_value']
to the term you want, or an array of terms if the field allows multiple selections.
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.