Support

Account

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