Home › Forums › Add-ons › Repeater Field › Repeater don't show › Reply To: Repeater don't show
Hi @tpodgro
Is it possible that you are calling this code outside the posts() loop?
If so, you will need to assign a post id as the second parameter on the have_rows() function like so:
$post_id = '123';
if( have_rows('elementalaune',$post_id) ):
while ( have_rows('elementalaune',$post_id) ) : the_row();
get_sub_field('image');
get_sub_field('texte');
endwhile;
else :
echo "Nothing here";
endif;
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.