Support

Account

Forum Replies Created

  • Kevin,

    Thanks for your response. I’m not sure I fully understand the above, but my design and needs have changed, and I’m getting closer to understanding what I need… and maybe you can help again?

    This code will be on a Band Page, calling to a Competition Page. Each have repeaters… band repeats competition list, competition repeats band and scores. I want to call a specific band’s scores from the competition page. I’m not sure how to specify the repeater row.

    <?php
    $post_object = get_sub_field(‘competition’);
    if( $post_object): $post = $post_object;
    setup_postdata( $post ); ?>

    “><?php the_title(); ?><p>

    <?php
    if( have_rows(‘competition_schedule’) ):
    while ( have_rows(‘competition_schedule’) ) : the_row();
    the_sub_field(‘band_score’);

    endwhile;

    else :

    // no rows found

    endif; ?></p>
    <?php wp_reset_postdata(); ?>
    <?php endif; ?>

    But right now, each band is pulling the same score.

    https://www.michiganmarching.com/bund/new-bund
    https://www.michiganmarching.com/bund/three-bund

    While I haven’t touched a template yet for the competitions in this regard, “State fight” does have both New Bund and Three Bund as in there, within the repeater, with different scores.

Viewing 1 post (of 1 total)