Support

Account

Home Forums Add-ons Flexible Content Field Flexible content outputs weird HTML Reply To: Flexible content outputs weird HTML

  • would it make a difference when you use this? :

    <?php if( have_rows('content') ):
    while( have_rows('content') ): the_row();
    $the_headline = get_sub_field('headline');
    $the_text_content = get_sub_field('text_content');
     ?>
    <h1><?php echo $the_headline; ?></h1>
    <p><?php echo $the_text_content; ?></p>
    
    <?php endwhile; ?>
    <?php endif; ?>