Home › Forums › General Issues › Problems with the new clone field › Reply To: Problems with the new clone field
Hi guys
I’ve just been testing this issue on a support ticket and have some useful info for you. I’ve found a scenario where the have_rows function will fail, and it’s all to do with the clone field’s display setting.
The issue can be found when a clone field is used as a sub field to clone in another loop-able field (repeater / flexible content). If this clone field uses the ‘display = block’ setting, the have_rows function will fail.
This issue is only specific to a sub clone field. If the clone field was a parent field, there is no issue. Similarly, if the clone field’s display setting is set to ‘seamless’, there will also be no issue.
The issue is due to the way the clone field loads it’s value when ‘display = block’. If you use the get_field() function and simply print out the value, you will notice a slightly different data structure for the block/seamless settings.
To solve the problem, please use the ‘seamless’ setting for your nested clone field. I will look into finding a solution for this issue.
Thanks
Elliot
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.