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>
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.