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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.