Support

Account

Home Forums Add-ons Flexible Content Field how to call flexible content inside group field? Reply To: how to call flexible content inside group field?

  • 
    $grp = get_field('all_content');
    $flex = $grp['flex_content'];
    while(have_rows($grp)) {
    if( have_rows($flex) ){
    
       while ( have_rows($flex) ) {
          the_row();
            // Case: Paragraph layout.
            if( get_row_layout() == 'content' ){
             the_row();
             echo get_sub_field('flex_content');
           }
       }
    }
    }