Support

Account

Home Forums General Issues Problems with the new clone field Reply To: Problems with the new clone field

  • I think I have the same problem here. @elliot do you understand the problem and can you give some tipps?

    The problem that I see is, that there is no function to point to the nested field. For my case the ‘modules’ array.

    Example output of $rows = get_field( 'rows' );:

    
    Array
    (
        [0] => Array
            (
                [acf_fc_layout] => 2_columns
                [column_1] => Array
                    (
                        [modules] => Array
                            (
                                [0] => Array
                                    (
                                        [acf_fc_layout] => button
                                        [text] => 1st button text
                                        [url] => 
                                    )
    
                            )
    
                    )
    
                [column_2] => Array
                    (
                        [modules] => Array
                            (
                                [0] => Array
                                    (
                                        [acf_fc_layout] => button
                                        [text] => 2nd button text
                                        [url] => 
                                    )
    
                            )
    
                    )
    
            )
    
    )
    

    I can loop over the layouts of the rows flexible content field, but I can’t loop over the clone fields of these layouts (modules). Attached you can find my exported field groups.