I can’t be sure, but, knowing something about the way ACF saves fields I would say
you have a flexible content field named
this has a sub field named
so you should only have two while statements using those column names. If
custom_columns was a sub field of
custom_layout what you would see in the db would look something like
if( have_rows('custom_layout_custom_columns') ): while ( have_rows('custom_layout_custom_columns') ) : the_row(); if( have_rows('column_2') ): while ( have_rows('column_2') ) : the_row();
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!