Home Forums Add-ons Repeater Field Help with Creating a Table Using Nested Repeaters Reply To: Help with Creating a Table Using Nested Repeaters

  • John,

    Ok, thanks for getting back to me. I have resolved the issue above, but I have a new issue: I have a repeater that has gone haywire and is repeating into infinity!!!

    Here is the page:

    Here is the page template:

    add_action( 'genesis_entry_content', 'rainbow_assemblies_of_ca' );
    function rainbow_assemblies_of_ca() {
        if ( have_rows('assemblies_of_ca') ):
            while ( have_rows('assemblies_of_ca') ) : the_row(); ?>
                <h2 class="decade-title"><?php the_sub_field('region_of_ca'); ?><h2>
                <?php if ( have_rows('assemblies_of_ca') ): ?>
                            <tr class="assemblies-row">
                                <td>Meeting Times</td>
                                <td>Contact Person</td>
                        <?php while ( have_rows('assembly_info') ) : the_row(); ?>
                            <tr class="assemblies-row">
                                <td><?php the_sub_field('assembly_city'); ?></td>
                                <td><?php the_sub_field('assembly_address'); ?></td>
                                <td><?php the_sub_field('assembly_meeting_times'); ?></td>
                                <td><?php the_sub_field('assembly_contact_person'); ?></td>
                        <?php endwhile; // end assemblies info ?>
                <?php endif; // end assembly_info ?>
            <?php endwhile; // end assemblies_of_ca ?>
    <?php endif; // end assemblies_of_ca
    } // End rainbow_assemblies_of_ca();
    genesis(); // Initialize Genesis
    // End of File

    Can you see what is causing the repeater to never stop? I must be missing something simple, but I can’t see it.