WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Edit is stripping out table <caption> element (4 posts)

  1. amyrogers
    Member
    Posted 6 years ago #

    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?

  2. stermercox
    Member
    Posted 6 years ago #

    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.

  3. moshu
    Member
    Posted 6 years ago #

    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.

  4. amyrogers
    Member
    Posted 6 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic