Home Forums Add-ons Repeater Field Count row neast repeater inside repeater


Count row neast repeater inside repeater

  • Hi,
    my problem is get the sub_field type repeater inside a repeater filed,
    i follow the documentation for create the code

    All the sub field is disply correcty
    I try to get the total number of row before start the loop, (before while)
    i use this code for the parent repeater
    echo count(get_field(‘parent_repeater’));
    an work correctly.

    I try to use the same code before the second loop, (before second while)
    but not work,
    i try to change code and use
    echo count(get_sub_field(‘sub_repeater’));
    i can’t get the sub repeater.

    Same idea for get the value?

Viewing 1 post (of 1 total)

The topic ‘Count row neast repeater inside repeater’ is closed to new replies.