Skip to main content

Timeline for ACF repeater inside group

Current License: CC BY-SA 4.0

4 events
when toggle format what by license comment
Jun 22, 2022 at 9:55 comment added Jirka @WebKing Yes, I also tried this code which works. But I want to find my mistake in the code above. code<?php if ( have_rows( 'acf_group' ) ) { while ( have_rows( 'acf_group' ) ) { the_row(); if ( have_rows( 'acf_repeater' ) ) { echo '<ul>'; while ( have_rows( 'acf_repeater' ) ) { the_row(); $link_text = get_sub_field( 'acf_repeater_field_text' ); $link_url = get_sub_field( 'acf_repeater_field_url' ); printf( '<li>%s: %s</li>', $link_text, $link_url ); } echo '</ul>'; } } } ?>code
Jun 21, 2022 at 20:42 comment added WebKing I think that there is no issue in your code. so please check the acf structure. Did you test that acf_group data is got?
S Jun 21, 2022 at 20:20 review First questions
Jul 5, 2022 at 20:25
S Jun 21, 2022 at 20:20 history asked Jirka CC BY-SA 4.0