Support

Account

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:

    http://demo.bodiequirkdesign.com/all-about-ca-rainbow/assemblies-of-ca/

    Here is the page template:

    <?php
    
    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') ): ?>
    
                    <table>
    
                        <thead>
                            <tr class="assemblies-row">
                                <td>City</td>
                                <td>Address</td>
                                <td>Meeting Times</td>
                                <td>Contact Person</td>
                            </tr>
                        </thead>
    
                        <?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>
                            </tr>
    
                        <?php endwhile; // end assemblies info ?>
    
                    </table>
    
                <?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.

    Thanks!