I have a page.php and single.php template that are 100% identical. Yet, when I render page.php the div don't get nested in the same way as single.php and the layout gets broken.
I've even diff'd the output of the two pages and, with the exception of the meta and non visible elements, they are also 100% identical.
Following is the code of both templates:
<?php get_header(); ?>
<?php
if ( have_posts() ) while ( have_posts() ) : the_post();
$post_id = $post->ID;
?>
<div class='container span12' id='single-post'>
<div class='span8 alignleft'>
<div class='post single'>
<h2 class='entry-title'><?php the_title(); ?></h2>
<?php the_content(); ?>
<?php comments_template( '', true ); ?>
<?php endwhile; ?>
</div>
</div>
<div class='span4 alignright'>
<div id='sidebar'>
<?php get_sidebar(); ?>
</div>
</div>
</div><!--end container-->
<?php get_footer(); ?>
What should I check to fix this issue?
whileloop at the middle... – kaiser Nov 27 '12 at 14:51