Support

Account

Home Forums Add-ons Repeater Field Repeater Limit, Bottom Half Reply To: Repeater Limit, Bottom Half

  • Hi @re20

    I believe you can make use of an if – else conditional statement to implement the above snippet instead of using the break.

    The code will look something like this:

    <?php while(has_sub_field('callactions','2')): $i++; if( $i < 3 ) {
    
    //do something
    }
    else{
    //do something
    }