• Resolved fbrcc

    (@fbrcc)


    UPDATE: I fixed this (sorry, I accidentally deleted the rest of the post, where the request was made). I was using an outdated loop to display tables inside a repeater and I was getting an error. The loop that should be used is the advanced loop from https://www.advancedcustomfields.com/resources/repeater/

    I’m leaving this in case the reference is of use to anybody.

    <?php if( have_rows(‘table_repeater’) ): ?>

    <?php while( have_rows(‘table_repeater’) ): the_row();
    // vars
    $table = get_sub_field(‘table_name’);
    if ( $table ) {
    echo ‘<table…

    [rest of the code to display tables, as is shown in the description of the plugin]

    ?>

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

    Thanks for the plugin! It works great.

  • The topic ‘Tables inside repeater (error)’ is closed to new replies.