Hi all,
I have a repeater field (text title, wysiwyg description, image image) that I want to add rows to from a form on the front end:
$settings = array(
‘id’ => ‘acf-form’,
‘post_id’ => $post_id,
‘new_post’ => false,
‘field_groups’ => false,
‘fields’ => array(
‘title’ => ‘field…17’,
‘description’ => ‘field…18’,
‘image’ => ‘field…19’
),
‘post_title’ => false,
‘post_content’ => false,
‘form’ => true,
‘form_attributes’ => array(),
‘return’ => ”,
‘html_before_fields’ => ”,
‘html_after_fields’ => ”,
‘submit_value’ => __(“Add”, ‘acf’),
‘updated_message’ => __(“Post Added”, ‘acf’),
‘label_placement’ => ‘top’,
‘instruction_placement’ => ‘label’,
‘field_el’ => ‘div’,
‘uploader’ => ‘wp’,
‘honeypot’ => true,
‘html_updated_message’ => ‘<div id=”message” class=”updated”><p>%s</p></div>’,
‘html_submit_button’ => ‘<input type=”submit” class=”acf-button button button-primary button-large” value=”%s” />’,
‘html_submit_spinner’ => ‘<span class=”acf-spinner”></span>’
);
acf_form($settings);
However I don’t want the Image field or WYSIWYG field to expose the media library on the front end. I can see that I can change the uploader to ‘basic’ but I still want to use the WP uploader if possible and I’m fairly sure this doesn’t change the uploader on the Add Media folder. For the Image I can see that I can change the ‘library’ to ‘uploadedTo’ but I can’t see an equivalent for the WYSIWYG media uploader. Any ideas?