Advanced custom fields acf_form () 'uploader' => 'basic' full wp file uploader not working showing on front side

I have a front end submit form. I want users to be able to add images to content without accessing the media library. I realize I 'uploader' => 'basic'

should only be showing the basic loader, but it still shows the full media loader. here's what I'm working with.

<?php acf_form(array(
                'post_id'       => 'new_post',
                'new_post'      => array(
                    'post_type'     => 'post',
                    'post_status'       => 'publish'
                ),
                'submit_value'      => 'publish',
                'post_title' => true,
                'post_content' => true,

                'updated_message' => __("Your post has been submitted for approval", 'acf'),
                'uploader' => 'basic',
                'return'        => home_url('user'),
            )); ?>

      

Can anyone please help?

+3


source to share


1 answer


Try the following:

'post_content' => false,



see https://support.advancedcustomfields.com/forums/topic/acf_form-and-basic-uploader/

0


source







All Articles