Support

Account

Home Forums Add-ons Repeater Field Liveticker (take result from first row of event repeater field) Reply To: Liveticker (take result from first row of event repeater field)

  • I tried but it didn’t work. Maybe you could change the code the way I used the repeater fields?

    <?php $attachment_id = get_field('liveticker_logo_heim', 'option');
                                      $size = 'medium'; // (thumbnail, medium, large, full or custom size)
                                      echo wp_get_attachment_image( $attachment_id, $size );
                                ?>
                                </div>
                                <div class="logo_gast">
                                    <?php $attachment_id = get_field('liveticker_logo_gast', 'option');
                                          $size = 'medium'; // (thumbnail, medium, large, full or custom size)
                                          echo wp_get_attachment_image( $attachment_id, $size );
                                    ?>
                                </div>
                                <div class="clear"></div>
                                <div class="ergebnis">
                                <div class="tore_heim"><?php the_field( "liveticker_tore_heim", 'option' );?></div>
                                <div class="ergebnis_zeichen">:</div>
                                <div class="tore_gast"><?php the_field( "liveticker_tore_gast", 'option' );?></div>
                                </div>
                                <div class="clear"></div>
                            </div>
                        </div>
                        <div class="liveticker_box">
    					<?php if(get_field('spielverlauf', 'option')): ?>
      						<?php while(has_sub_field('spielverlauf', 'option')): ?>
                            <div class="liveticker_wrapper">
    						<ul>
                                	<li class="liveticker_ergebnis">
                                    	<?php if(get_sub_field('minute')) : ?>
                                        <p><?php the_sub_field('minute');?>. Minute<br/>
                                        <?php else : ?><br/>
                                        <?php endif ;?>
                                        <?php if(get_sub_field('liveticker_tore_heim')) : ?>
                                        <?php the_sub_field('liveticker_tore_heim');?> : <?php the_sub_field('liveticker_tore_gast');?></p>
                                        <?php else : ?>
                                        <?php endif ;?>