Support

Account

Home Forums Add-ons Repeater Field What does the_row() return? Reply To: What does the_row() return?

  • Hi @Will

    The issue is that you are using the_row twice within the loop!

    Only use it once per loop like so:

    
    <?php
    if( have_rows('resources') ):
     
    	while ( have_rows('resources') ) : $row = the_row();
    
    		$type = $row['resource_type'];
    		echo "<h3>Type: " .  $type . " </h3>";
    	
    	endwhile;
    endif;				
    ?>
    

    Thanks
    E