Okay, on the non-embedded page, I don't see a "wrap" div, and the entries appear separately, as expected.
On the embedded page, there is a wrap div, and the entries appear inside another entry's div, which is not expected.
The correct version's structure is:
Code: Select all
div.serendipity_Entry_Date
h3.serendipity_date
[
h4.serendipity_title (includes top and side outline)
div.serendipity_entry (includes bottom and continuing side outline)
div.serendipity_entry_body (text of entry)
div.serendipity_entry_footer
]
[
h4.serendipity_title (next entry)
...
]
Whereas the embedded version is:
Code: Select all
div.serendipity_Entry_Date
h3.serendipity_date
div.serendipity_entry
div.serendipity_entryFooter
h4.serendipity_title
div.serendipity_entry_body
[
div.serendipity_Entry_Date
h3.serendipity_date
div.serendipity_entry
div.serendipity_entryFooter
h4.serendipity_title
div.serendipity_entry_body
]
[
div.serendipity_Entry_Date
...
]
This is the oddest output I have seen in my time supporting Serendipity. It looks like something is getting called recursively, and incorrectly. Possibly the database is fouled; possibly the code is corrupted. Either that, or it's a bug in Serendipity embedding.
I see you're using 1.2.1. It'll be easier to test this on 1.3.1, could you upgrade? In any case, I'd recommend reinstalling from scratch. Since your entries are all tests, it should be no big deal.
To test the bug scenario, I set my sandbox 1.4 (nightly version) to MT-trendy. It had the same structure as your non-embedded version, and looked correct. Then I changed the embedded option. I still had the same structure, although the CSS was gone. There is no wrap div, so I assume that's coming from your wrapper script.
Wait, wait... an idea just occurred to me. This might be similar to the output if your wrapper script was being called multiple times, or recursively. Can you show us your wrapper script as it appears now? I'd add an "echo "<div>Wrapper called</div>" just after the ob_start() call for debugging.
That seems a little far-fetched, though. More likely we messed up the index.php or entries.tpl while we were fooling around with this the first time. I'd try reinstalling Serendipity first.