Support

Account

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/