Support

Account

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;