Support

Account

Home Forums General Issues Removing Paragraph Tags from WYSIWYG Fields? Reply To: Removing Paragraph Tags from WYSIWYG Fields?

  • Hi @nitruc

    Thanks for the follow up. Perhaps the solution is to remove the ‘wpautop’ filter from the formating of the WYSIWYG value.

    Normally, this would be done via:
    remove_filter ('the_content', 'wpautop');

    But ACF uses a custom filter called ‘acf_the_content’, so try this in your functions.php file:

    
    remove_filter ('acf_the_content', 'wpautop');
    

    Hope that helps.

    Thanks
    E