Support

Account

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

  • 
    if (have_rows('featured_products_repeater')) {
      ?>
        <div class="product_slider-1">
          <?php 
            while (have_rows('featured_products_repeater')) {
              the_row();
              // https://www.advancedcustomfields.com/resources/post-object/
              $post = get_sub_field('post_object_field');
              setup_post_data($post);
              wc_get_template_part('content', 'product');
            }
          ?>
        </div>
      <?php 
      wp_reset_postdata();
    }