WordPress.org

Forums

Table entries disappearing after saved (2 posts)

  1. 1stmillionat33
    Member
    Posted 9 years ago #

    I have been trying to put in a table into the editor for more than 3 hours now. Whether I use the WP editor in HTML mode or not, it doesn't make a difference. Most of the time, after I put in the table of 27 rows long, and then clicked on save or save and continue, the table will be left with only 1 entry. My WP is 2.02.

    Here is an example of 5 entries table that one could try:

    <TABLE BORDER=3 WIDTH="40" HEIGHT="12" CELLPADDING=0 CELLSPACING=0>
    <TR ALIGN=right>
    <TH ALIGN=center>pay#</TH>
    <TH ALIGN=center> balance of regular contrib. </TH>
    <TH ALIGN=center> upfront contrib. </TH>
    <TH ALIGN=center> balance of upfront contrib. </TH>
    </TR>
    <TR ALIGN=right>
    <TD ALIGN=right>1</TD>
    <TD ALIGN=right> 576.93 </TD>
    <TD ALIGN=right> 2,307.69 </TD>
    <TD ALIGN=right> 2,307.69 </TD>
    </TR>
    <TR ALIGN=right>
    <TD ALIGN=right>2</TD>
    <TD ALIGN=right> 1,154.70 </TD>
    <TD ALIGN=right> 2,307.69 </TD>
    <TD ALIGN=right> 4,618.76 </TD>
    </TR>
    <TR ALIGN=right>
    <TD ALIGN=right>3</TD>
    <TD ALIGN=right> 1,733.32 </TD>
    <TD ALIGN=right> 2,307.69 </TD>
    <TD ALIGN=right> 6,933.20 </TD>
    </TR>
    <TR ALIGN=right>
    <TD ALIGN=right>4</TD>
    <TD ALIGN=right> 2,312.78 </TD>
    <TD ALIGN=right> 2,307.69 </TD>
    <TD ALIGN=right> 9,251.03 </TD>
    </TR>
    </Table>

    There are two times that I got the all entries of table into wordpress, but when it's displayed in IE, there are so many blank lines before the table that you have to scroll down like 2 to 3 pages before you see the actual table.

    How can I make this work? I've checked the HTML syntax, and I can't find any problems. When I create a standalone HTML file, and let IE to display this file, IE can display without any problems.

    I have unchecked "WordPress should correct invalidly nested XHTML automatically" under Options -> Writings just in case that WP is doing something. But that didn't help.

    Your help is greatly appreciated.

    Thanks.

  2. Kafkaesqui

    Posted 9 years ago #

    Other than the ALL CAPS being invalid XHTML...Seriously, what's happening is WordPress is not recognizing various table elements as ones to ignore for auto-formatting (of line breaks and paragraphs).

    I think your best option, until the WordPress devs fix this, is when inserting a table in a post place all of the table on a single line, editing out all line breaks between the opening <table> and closing </table> tags. This will keep WordPress from inserting break tags, which is the cause of what you're seeing.

    It may look ugly in the editor, but it will display correctly on your blog.

Topic Closed

This topic has been closed to new replies.

About this Topic