More html-tags in output than in template
-
Hi out there,
just started with WP and like it, did all the “arounds” of my page which is a full CSS-layout. For the moment, one problem remains while displaying title and content: All my “maincontent”, i.e. all the blog-entrys, is placed in a container with the id=”main”. First, I changed the index,php like this:
<div id="main">
<?php if ($posts) { foreach ($posts as $post) { start_wp(); ?>
<h1 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h1>
<?php the_content(); ?>
</div>
However, the html-output is something weird like this:
<div id="main">
<h1 id="post-3">titletext</h1>
text of post 1
</div>
<h1 id="post-2">titletext</h1>
text of post 2
</div>
Seems as if there are added additional html-Tags within the php-functions? I tried to find those in some of the php-files but couldn’t find anything. I would like to do the loop within the main div. There are no p-tags in my edited post, and no single or double line breaks.
Anybody understand the point? Thanks for any hint!
elya
- The topic ‘More html-tags in output than in template’ is closed to new replies.