Home › Forums › Front-end Issues › acf_form upload featured image error › Reply To: acf_form upload featured image error
Hi @geppie030
If you execute “acf/save_post” with the priority of 10, the image is not processed by WordPress yet. Kindly change it to 20, get the image by using the get_field() function and use the set_post_thumbnail() function to set the featured image instead.
This page should give you more idea about it: https://www.advancedcustomfields.com/resources/acfsave_post/.
I hope this helps 🙂
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.