Support

Account

Home Forums Bug Reports Auto BR is broken? Reply To: Auto BR is broken?

  • I’m having this same problem even though i use get_field.

    Im using elegantthemes theme and have a learn_more shortcode run if user types details in acf text area field. The content inside act text area field is then passed in to learn_more shortcode but it’s missing those automatic <br> line breaks.

    Here is my php

    <?php
    $onko_lisatietoja = get_field(‘lisatiedot’);
    if($onko_lisatietoja!=”){ ?>

    <?php echo do_shortcode(‘[learn_more caption=”Lis├Ątietoja”]’.get_field(“lisatiedot”).'[/learn_more]’); ?>

    <?php } else { ?>

    <?php } ?>