Home Forums General Issues Nesting clone in a clone


Nesting clone in a clone

  • Hi,

    I have a field group – let’s call it ‘Button’.

    And Another – ‘Section’

    Section is cloned into a layout in a Flexible Layout Field (id = section).

    Button is cloned into Section (prepended so id = section_button).

    To access fields in the Element I’ve had to use:

    $button = get_sub_field( 'section_button' );

    url was Text field with id ‘text’.

    I had initially assumed I could just use:


    But it wouldn’t work.

    Am I doing the right thing? It doesn’t feel very efficient.

  • It depends on the field types and fields how it is accessed.

    Is the button field in a “Field Group” or it a “Group” field.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Nesting clone in a clone’ is closed to new replies.