Home › Forums › ACF PRO › Acf Pro Front end image upload ! › Reply To: Acf Pro Front end image upload !
This can be done in other ways.
Create an acf/pre_save_post filter https://www.advancedcustomfields.com/resources/acf-pre_save_post/, and move the image to the post thumbnail. There is an example of this here, search for “_thumbnail_id” on that page
Create an acf/save_post filter https://www.advancedcustomfields.com/resources/acf-save_post/, there is an example of this here https://itsmereal.com/advanced-custom-fields-front-end/
Create an acf/update_value filter https://www.advancedcustomfields.com/resources/acfupdate_value/, there is a solution for in this topic https://support.advancedcustomfields.com/forums/topic/set-image-as-featured-image/
But the easiest method, that most people overlook, is to create an image field with the field name of “_thumbnail_id”. Doing this ACF will just store the image in the field it needs to be stored in and in the same format. No extra work required for this one.
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.