Support

Account

Home Forums ACF PRO ACF Form For Gallery Field

Unread

ACF Form For Gallery Field

  • 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');
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.