Support

Account

Home Forums Add-ons Options Page Select specific repeater rows from an options page Reply To: Select specific repeater rows from an options page

  • Yeah I had pretty much used the same code as above as.

    
    <?php
         $selection = get_field('sa_select_bookmaker', 'option');
              if( !empty( $selection ) ) {
                   if( have_rows( 'side_ads', 'option' ) ) {
    
                        while( have_rows( 'side_ads', 'option' ) ) {
                             the_row();
    
                             $title = get_sub_field('sa_bookmaker');
    
                             if( in_array( $title == $selection ) ) {
    
                                  $title = get_sub_field('sa_bookmaker');
                                  $org = get_sub_field('left_ad');
                                  $img = get_sub_field('right_ad'); 
                                  ?>
                                  <?php echo $title; ?> <?php echo $org; ?> <?php echo $img; ?> 
                                  <?php
                                       }
                                  }
                             }
                        }
                   ?>