And I can pass my sub field, once fetched to the template context.
However what if field ‘rich_text_editor’ is another nested repeater or flexible field?
How can I call these contextual in-loop methods like have_rows, from within the template part? The scope is lost, as we have to pass variables explicitly into the template.
So get_row_layout(), have_rows() etc no longer work.
I also cannot call for example, get_field(‘rich_text_editor’, $postID )
since rich_text_editor is an nested child of repeater_page_section.
Question 2: when i use
get_fields( $post->ID );
and then dump the output, I see well defined nested structure of my data.
what is the advantage of using these proprietary methods like have_rows, the_row, get_field, get_sub_feild etc
instead of just iterating through the returned data structure in a foreach ?