Support

Account

Home Forums Add-ons Repeater Field Know the number of repeater rows before while statement Reply To: Know the number of repeater rows before while statement

  • You say (not nested repeater), are you working with a nested repeater?

    One line of code is the solution. When you use get_field() for a repeater it returns an array. Each row of the repeater is an element of the array. count() gives the number of rows in the array.

    If you’re getting zero for a repeater that has rows then something else is going on preventing you from correctly getting the field.