Hello Florence!
Here is 2 possibilities.
Hope this will help you!
Option #1
<?php
/*
* First option
*/
$rows = get_field("my_repeat_name", "option");
if($rows){
foreach($rows as $row){
echo $row["field_name"];
}
}
?>
Option #2
<?php
/*
* Second option
*/
if(have_rows("my_repeater_name", "option")){
while(have_rows("my_repeater_name", "option")) : the_row();
echo get_sub_field("field_name");
endwhile;
}
?>