Support

Account

Home Forums General Issues Stop wysiwyg field from removing <p> in <li>

Helping

Stop wysiwyg field from removing <p> in <li>

  • 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?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.