Is there a way to stop the WYSIWYG field from removing <p> tags when inside the li tag?
<ul>
<li> <p> text </p> </li>
</ul>
After saving
<ul>
<li> text </li>
</ul>
I have tried the below but makes no difference.
remove_filter(‘the_content’, ‘wpautop’);
remove_filter (‘acf_the_content’, ‘wpautop’);
I’m wrestling with this right now as well — any luck as of yet?