Home › Forums › Add-ons › Flexible Content Field › has_sub_field / get_row_layout don't work anymore › Reply To: has_sub_field / get_row_layout don't work anymore
Hi @luistinygod
Can you please do some debugging in your while loop to see what functions are and are not working. Something like this would be good:
<?php
if( get_field('custom_tab_menu') )
{
echo '<pre>';
print_r( 'value exists' );
echo '</pre>';
$i = 0;
while( has_sub_field( 'custom_tab_menu' ) )
{
$i++;
echo '<pre>';
print_r( 'Within loop: ' . $i . ', layout: ' . get_row_layout() );
echo '</pre>';
}
}
?>
let me know what you find
Thanks
E
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.