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();
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.