Home › Forums › Front-end Issues › Wysiwyg field loses its tags when outputted › Reply To: Wysiwyg field loses its tags when outputted
You could make use of remove_filter() and have your field call like this:
the_field('wysiwyg_field', false, false);
If that is stripping away what you need, try this:
the_field('wysiwyg_field', true, true);
If that still doesn’t generate what you want, in the WYSIWYG field settings, change the editor mode to ‘Text’ which will retain all of your HTML tags. You won’t get a WYSIWYG preview on edit screens but your formatting will remain intact.
See this thread for more info: https://support.advancedcustomfields.com/forums/topic/disable-auto-p-tags-in-wysiwyg-editor/
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.