Home › Forums › General Issues › Problems with the new clone field › Reply To: Problems with the new clone field
Please, can anyone help with this? I really need to get this to work.
I just need a code example of a flexible field with a clone field that is a repeater field.
I’ve tried something like this but nothing works.
if ( have_rows('cloneField_flexibleContentField_cloneField_repeaterField') ){
echo '<h1>We have more rows!</h1>';
}
I can only seem to do a have_rows once. I know the data is there, I just need to be able to call it out.
Array ( [] => [layout_elements] => Array ( [0] => Array ( [acf_fc_layout] => layout_component_element_column [component_element_column] => Array ( [] => [element_column] => Array ( [0] => Array ( [column_content] => [column_width] => 12 [column] =>
test column 1
[column_start_with_drop_cap] => false [column_add_margin_to_the_top] => 0 [animate_elements] => [column_section_animation] => Array ( [0] => none ) [additional_element_options] => Array ( [0] => Array ( [element_id] => [element_visible_on] => ) ) ) [1] => Array ( [column_content] => [column_width] => 12 [column] =>
test column 2
[column_start_with_drop_cap] => false [column_add_margin_to_the_top] => 0 [animate_elements] => [column_section_animation] => Array ( [0] => none ) [additional_element_options] => Array ( [0] => Array ( [element_id] => [element_visible_on] => ) ) ) ) [full_screen_options] => [full_screen_option] => Array ( [0] => Array ( [component_option_full_screen_section] => off [component_option_section_background] => [component_option_section_text_colour] => ) ) ) [text] => some text ) ) [select_content_editor] => flexi [show_page_title] => true [display_background_image] => [background_colour] => #ffffff [background_image] => [image_repeat] => Array ( [repeat-y] => repeat-y ) [image_position] => Array ( [] => ) [position_top] => [position_left] => [image_size] => Array ( [auto] => auto ) [image_width] => [image_height] => [image_attachment] => Array ( [scroll] => scroll ) [custom_code] => Array ( [0] => Array ( [custom_code] => ) ) )
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.