Home › Forums › General Issues › BR tags are inserted…
Hi
I have a weird issue on one of the pages where I’m using your great plugin to get some custom fields. You can see the page here: http://www.vinhit.dk/kategori/lande/oestrig/
In line 304 several <br> tags are inserted, but I can not see them in the wysiwyg field in the backend…
I’m using this code to display the field:
<div id="producenter_omraader_facts">
<?php
// load producenter_omraader_facts for this taxonomy term
$producenter_omraader_facts = get_field('producenter_omraader_facts', $taxonomy . '_' . $term_id);
echo $producenter_omraader_facts;
?>
</div>
On other pages which are using the exact same fields and templates there are no <br> tags, see e.g. view-source:http://www.vinhit.dk/kategori/lande/oestrig/kremstal/
Hope you can help me solving this very weird issue.

Hi @psejersen
Looking at the source code within the div with id=”producenter_omraader_facts”, I can’t see any br tags…
Can you attach a screenshot of the field group edit page showing the WYSWIYG field will all settings open?
Also, can you attach a screenshot of what the WYSIWYG field looks like when you input a value?
Thanks
E
Really strange, it must have been some caching issue (even though I cleared the cache).
It’s solved now. Thanks for the fast reply, though 🙂
Even though this is marked as solve, I’d like to re-open it because I am suffering from the same symptom.
I have approximately 50 BR tags getting injected before the content of my posts. This is not kosher and I would like for someone to help me resolve it.
When I disable ACF, the issue goes away. Cache is not the issue here.
Please advise!
The topic ‘BR tags are inserted…’ is closed to new replies.
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.