Quantcast
Channel: Tagged with repeater - Plugin Support
Viewing all articles
Browse latest Browse all 160

Nested repeater only displaying sub-field?

$
0
0
I'm trying to configure my homepage with a repeater field, and I copied and pasted the code, verbatim, from the "Nested Repeater Field" document on ACF and only modified for my actual field names and added the content for the sub-field.

The only thing loading, however, is the subfield. I can not get the main field to load. I've tried by using both the <$=row> input and <?get_field>, neither will display the content outside of the sub-repeater.

What exactly am I doing wrong? Please see code below - running on most recent versions of WP and ACF.


<?php if( get_field('blue-box', 2) ): ?>


<?php the_field("blue_title");?>
<?php the_field("blue_text");?>

<?php while( has_sub_field('blue-box', 2) ): ?>

<?php if( get_sub_field('content_links', 2) ): ?>



<?php while( has_sub_field('content_links', 2) ): ?>
"><?php the_sub_field('link_name');?>
<?php endwhile; ?>



<?php endif; ?>
<?php endwhile;?>

a rel="nofollow" href="?php the_field(">" class="button">more


<?php endif; wp_reset_query();?>

Viewing all articles
Browse latest Browse all 160

Trending Articles