Support

Account

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