I’m attempting to create a short code that will display a frontend ACF form for a gallery field with the same edit, upload, delete functions available on the backend. Its not displaying. What might I be missing?
function acf_gallery_shortcode(){
while ( have_posts() ) : the_post();
$settings = array(
'id' => 'acf-form',
'fields' => array($fields['gallery']['key']),
'form' => true,
'submit_value' => __('Update meta')
);
acf_form();
endwhile;
}
add_shortcode('acf-gallery', 'acf_gallery_shortcode');