Support

Account

Home Forums Add-ons Repeater Field Rotating Clickable Banner Code Reply To: Rotating Clickable Banner Code

  • I think you need to replace the while loop with

    $rows = get_field('title' ); // get all the rows
    $rand_row = $rows[ array_rand( $rows ) ]; // get a random row

    and then use

    $image = $rand_row['image' ];
    $link = $rand_row['link' ];

    to get the values.