hey all, I'm having this problem where I've placed my main post in a div tag only when I add a new post the div tag doesn't close, instead I have to add a new </div> inside my index php the close up the tag.
I hope I explained to right but if not here's the code in the php.
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?><title>site orignal</title>
<div id="content">
<div id="blog-<?php the_ID(); ?>" class="blog">
<p class="date"><?php the_time('F')?><br />
<span><?php the_time('jS')?></span></p>
<div class="blog_small">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></h2>
<p><?php the_tags('Tags: ', ', ', '<br />'); ?></p>
<div class="entry"><?php the_content('Read the rest of this entry »'); ?></div>
<div class="hr"></div>
<p><?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p><br />
<div class="hr"></div>
</div>
</div>
<?php endwhile; ?>
<div class="right">
<ul>
<li><?php next_posts_link('« Older Entries') ?></li>
<li><?php previous_posts_link('Newer Entries »') ?></li>
</ul>
</div>
<?php else : ?>
<p>Sorry, but you are looking for something that isn't here.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
<div class="pagination">
<div class="right"><a href="http://www.bhlablhaa.com/index.php/page/2/">Older Entries »</a></div>
<div class="left"></div>
</div>
</div> <!-- content end -->
</div>
</div>
</div>
</div><!-- column-left end -->
<?php get_sidebar(); ?>
<br style="clear:both;" />
</div> <!-- Container end -->
<?php get_footer(); ?>
</div> <!-- content end -->
</div>
</div>
</div>
</div><!-- column-left end -->
this where the div tag (div "content")contains the main post should end however I had to add 3 more </div> to end the new post I've just added. Is there away so that the div can be automatically close itself with every post?