• I’m trying some new themes and they are all breaking whenever I use the More tag. The other columns (the ones without the posts) always get pushed to the bottom of the page. When the_content() is called, what it’s returning is this:

    Without More tag:

    <div id="post">
    <p>POST CONTENT</p>
    </div>

    With the More tag:

    <div id="post">
    <p>CONTENT BEFORE MORE TAG
    (more…)</p>

    Notice the lack of a closing div tag. I’m not really sure how to fix this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter ryanelkins

    (@ryanelkins)

    An interesting thing to note is that this doesn’t happen on other 2.5.1 installations of WordPress that I run, but if I move those particular themes over to this new site I’m working on the problem persists.

    have your tried looking in the post loop code to see if there is anything that stops a more tag

    Thread Starter ryanelkins

    (@ryanelkins)

    I’m still not sure what was causing the problem but it has stopped now. It was adding this tag – <div id="lipsum"> and then never closing it. So, instead of what I was showing before, with the more tag, it looked like this:


    <div id="post">
    <div id="lipsum">
    <p>CONTENT BEFORE MORE TAG
    (more…)</p>
    </div>

    So it was still missing a div and therefore breaking stuff. I noticed that at some point in my testing it just… stopped. I deleted the posts that still had it and now everything seems to be working. Strange…

    I’m going to make this as resolved since it’s not longer a problem of mine but it would be nice to know what was going on and why it suddenly just stopped…

    congrats

    Man, this one was driving me crazy for a few hours… I was having the same problem. Problem is now solved.

    Where was the <div id=”lipsum”> coming from? I searched through all the WP source code… nothing.

    Then I remembered where my content was coming from:

    http://www.lipsum.com/

    When the Lipsum site generates lorem ipsum text, it wraps that generated text in a div… a div titled “lipsum”.

    So there you go… you must have been pasting your content straight from a Lipsum generator (or something similar), and your browser was smart enough to retain that div information on paste into your WP admin.

    Hopefully this clears things up for you as it did for me.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘More Tag breaks themes’ is closed to new replies.