When switching from html to visual editor the <p> tag gets erased

I’m facing a problem, basically if I use the

tags into the html and then change to visual editor, the tags disappear, and it stays in plain text.

Read More

Scenario:

  • In HTML mode, I add some p tags to a post I’m editing.
  • I switch to Visual, then back to HTML, and the tag and all of its content are gone.

I’m not using any extended tinymce plugin.

Any Suggestion?

Related posts

Leave a Reply

1 comment

  1. WordPress doesn’t save <p> tags. Paragraphs are displayed automatically in the TinyMCE visual editor and then the output gets <p> tags automatically (for better or for worse) from the wpautop function.

    I avoid using <p> tags. A double line break will automatically be converted to a paragraph at output.