came here for the same thing, for example:
this works:
while(have_rows($listaEventoskey,’option’)){
the_row();
$thisid = get_sub_field(‘eventid’);
echo “i have this: $thisid<br>”;
}
but, this won’t work:
function infoEvento() {
while(have_rows($listaEventoskey,’option’)){
the_row();
$thisid = get_sub_field(‘eventid’);
echo “tenho o id de $thisid<br>”;
}
}
infoEvento();