Home › Forums › General Issues › Taxonomy field population › Reply To: Taxonomy field population
Hi @kharlo
I would highly encourage you to not duplicate your data by having both taxonomy and custom field saving the save data.
This ‘saving all the posts’ issue is only one of many synchronized issues you will experience with this data structure.
If you are adamant about this method, you can write a custom loop using WP_Query
and for each post, use the update_field
function to save the taxonomy term ID’s as an array.
Thanks
E
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.