Support

Account

Home Forums General Issues Getting a count of repeater sub fields Reply To: Getting a count of repeater sub fields

  • Or if you want to know the count before running through the array, try something like:

    if( have_rows('questions') ):
       $my_fields = get_field_object('questions');
       $count = (count($my_fields['value']));
     endif;