Home › Forums › General Issues › Multiple fields in a meta_query › Reply To: Multiple fields in a meta_query
Hi @jmh
Aah, yes, you could write a custom query indeed.
1. Use get_posts to find all the posts
2. Use the update_field function to save the value
Please note that you will need to use the field_key instead of the field_name. The reason for this is explained int he update_field docs, but basically, ACF needs to know which field you have saved the value from.
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.