WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Problem creating Table in Page/Post (4 posts)

  1. JAS4Yeshua
    Member
    Posted 7 years ago #

    When trying to post a table with a caption tag, the caption tag is automatically removed by WordPress. I'm wondering why this is happening, considering caption is a valid tag.

    Example:
    <table>
    <caption>This is a caption</caption>
    <tr>
    <th>Header 1</th>
    <th>Header 2</th>
    </tr>
    <tr>
    <td>Cell 1</td>
    <td>Cell 2</td>
    </tr>
    </table>

    After posted, it removed the caption tag and becomes:
    <table>
    <tr>
    <th>Header 1</th>
    <th>Header 2</th>
    </tr>
    <tr>
    <td>Cell 1</td>
    <td>Cell 2</td>
    </tr>
    </table>

    I've tried to search for a solution, but couldn't find anything. To see the actual page in question, go to:
    http://www.goldmedalcollectibles.com/olympic-games-of-the-modern-era/

    There should be a caption above the headers that says "Summer Olympic Games"

  2. moshu
    Member
    Posted 7 years ago #

    Are you putting your code in the wysiwyg editor?
    Never do that with any kind of code...

  3. JAS4Yeshua
    Member
    Posted 7 years ago #

    No, I'm using the HTML button, and typing it in directly

  4. JAS4Yeshua
    Member
    Posted 7 years ago #

    Through the tags feature on these forums, I stumbled onto the solution. Sorry for reproducing the same question here.

    I disabled the WYSYWIG completely and reposted the table and it worked. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic