Home › Forums › Front-end Issues › Front-end image upload for guest › Reply To: Front-end image upload for guest
I’ve tried to disabling all other plugins, but the error is the same.
The uploader field works only if I’m login to WordPress. If I am a guest user, without wordpress login, the form only display the file name (see attachment to this comment) in an div with acf-error-message class.
Can you post your working code?
This is my code:
acf_form(array(
'post_id' => $_SESSION['id'],
'post_type' => 'couple',
'post_title' => false,
'fields' => array('couple_cover'),
'submit_value' => 'Aggiorna informazioni',
'form_attributes' => array('class'=>'form-horizontal', "role" => "form"),
'return' => $url.'/area-riservata/dashboard/',
'uploader' => 'basic'
));
<?php acf_enqueue_uploader(); ?>
<script type="text/javascript">
(function($) {
// setup fields
acf.do_action('append', $('#popup-id'));
});
</script>
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.