Forums

the <!--more--> tag (4 posts)

  1. regn
    Member
    Posted 3 years ago #

    Hey guys -

    I am trying to cut off a post in which I have a table. Cutting it off after the first 55 words doesn't make any sense at all, since the main table then misses its closing tag, and the whole thing is messed up. I tried inserting the <!--more--> tag after the first table (I have three, in fact), but I only need the first cell of the table to be displayed on the main page.

    What can I do?

  2. t31os
    Member
    Posted 3 years ago #

    So you want to display one table cell without actually outputting all the HTML for a full table?

    I'd be impressed if anyone knows of a way to do that.

    If you want to display a table cell, then you need a table, you can't just render a part of a table on one page then other parts on the next.

    If you want something from the table displayed then you'll either have to take the content out of the table or display the whole table.

  3. regn
    Member
    Posted 3 years ago #

    Yeah, I actually want the preview to contain one cell, and when you click on "more..." it should direct you to the actual post page.

    Of course, I could use "the_excerpt", but I'm hesitating 'cause we've been using "the_content" for a long time and I don't want to mess everything up by changing the template...

    So, I thought that maybe there was a way to do it using "the_content". well, thanks anyways :)

  4. t31os
    Member
    Posted 3 years ago #

    Yeah i see what you want, but that's just not possible...

    You can't just render a single table cell, well you could but it won't display correctly.

    Could you not use a custom field? and include a single cell table in that custom field, then just don't show that custom field on the full page version.

Topic Closed

This topic has been closed to new replies.

About this Topic