Support

Account

Home Forums Front-end Issues How to show ACF Repeater in front end form Reply To: How to show ACF Repeater in front end form

  • I think its something to do with javascripts.. below is the code used in page template. Is this code right?

    <?php
    /**
     * Template Name: Manage Products
     *
     * @package Listable
     * @since Listable 1.0
     */
    acf_form_head();
    
    get_header();
    
    global $post; ?>
    
    	<div id="primary" class="content-area">
    		<main id="main" class="site-main" role="main">
    		<script type="text/javascript">
    			(function($) {
    				// setup fields
    			acf.do_action('append', $('#popup-id'));
    			})(jQuery);	
    		</script>
    			<?php /* The loop */ ?>
    			<?php while ( have_posts() ) : the_post(); ?>
    				<? acf_form(array(
    				‘form’ => true,
    				‘post_id’ => ‘user_’ . $user_id,
    				‘field_groups’ => array(‘field_57aad46f04ccc’),));
    			?>
    			<?php endwhile; ?>
    			<?php  acf_enqueue_uploader();?>
    		</main>
    		<!-- #main -->
    	</div><!-- #primary -->
    
    <?php
    get_footer();