Home › Forums › Front-end Issues › Front-end form image upload issues › Reply To: Front-end form image upload issues
Ok I found a solution to upload an image for non logged user from a front end form.
This method just upload the file in the media library and return the attachment id => $attachment_id (in functions.php)
So, to set the image like featured image for example, use the set_post_thumbnail method:
http://codex.wordpress.org/Function_Reference/set_post_thumbnail
Hope to help you.
Matteo
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.