WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Edit is stripping out table <caption> element

[Resolved] Edit is stripping out table <caption> element

  • When the following code is entered in the HTML window and saved, for some reason the <caption> element is stripped out.

    <table>
    <caption>text</caption>
    <tr><td>text</td><td>text</td></tr>
    <tr><td>text</td><td>text</td></tr>
    </table>

    after saving it looks like this

    <table>
    <tr><td>text</td><td>text</td></tr>
    <tr><td>text</td><td>text</td></tr>
    </table>

    How do I make the <caption> stick?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I have noticed that WP strips a lot of code out of pages. I’m having so many problems with it stripping all <p> and </p> tags that I’m about ready to redo my wife’s site back to HTML. I don’t know what’s going on with WP, but I’m getting very discouraged with it.

    It is very simple: the wysiwyg (visual) editor is for code illiterates – for those that do NOT use any html code in their posts ever.
    If you know code – your should disable (admin > Users > Your profile) the visaul monster.

    After that you can use any code in your posts/Pages and WP will never alter it.

    Turning off the visual code solved this problem. Thanks moshu!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Edit is stripping out table <caption> element’ is closed to new replies.