Home › Forums › Bug Reports › Auto BR is broken? › Reply To: Auto BR is broken?
Hi,
I had a similar problem,
The formatting is removed when the_field or get_field is used in an archive-template. I tested it on 2 themes same result. bones and twenty-eleven.
both functions work fine in a page-template an probably in a single-template. the nl2br() solution works for me
`<p><?php echo nl2br(get_field(‘cv’)); ?></p>
hope it gets fixed.
B
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.