Support

Account

Home Forums General Issues Can't output repeated fields? Reply To: Can't output repeated fields?

  • Well, thanks for helping, I tried for quite a bit of time, still got nothing to work at all, I even adjusted how I declared the global $post.

    This is where I last left off not too sure where to go from here, maybe it’s how I set up my ACF http://ussawssdev.wpengine.com/wp-content/uploads/2021/06/Capture.png

    
    <div id="featured" class="product_slider-1">
    <?php if( have_rows('featured_product_repeater') ) { ?>
    <div class="testing_prod_div">
       <?php 
            while (have_rows('featured_product_repeater')) {
              the_row();
              $posts = get_sub_field('product_2');
              foreach ($posts as $post) {
                   var_dump($post);
                   setup_post_data($post);
                   wc_get_template_part('content', 'product');
                }
             }
          ?>
       </div>
    <?php wp_reset_postdata(); } ?>
    <div>Testerrrrrrs</div>
    </div>