Wrapper Div Not Affecting Loop
-
I need some help in figuring out why the wrapper div isn’t affecting the loop in my theme. Here’s a copy of my index.php:
<div id=”wrapper”>
<?php get_header ();?><div id=”loop”>
<!– Begin Loop –>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?><!– Generating the Post // Title, Date, and Author –>
<h2 id=”post-<?php the_ID(); ?>”>
” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>
<?php the_title(); ?></h2>
<small><?php the_time(‘F jS, Y’) ?> <!– by <?php the_author() ?> –></small><!– Generating the Post // Post Content –>
<div class=”entry”>
<?php the_content(‘Read the rest of this entry »’); ?>
</div><!– Generating the Post // Additional Details –>
<p class=”postmetadata”>
Posted in <?php the_category(‘, ‘) ?>
|
<?php edit_post_link(‘Edit’,”,’|‘); ?>
<?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?></p><!– End Loop –>
<?php endwhile; ?><div class=”navigation”>
<div class=”alignleft”><?php previous_posts_link(‘« Previous Entries’) ?></div>
<div class=”alignright”><?php next_posts_link(‘Next Entries »’,”) ?></div>
</div><?php else : ?>
<h2 class=”center”>Not Found</h2>
<p class=”center”>
<?php _e(“Sorry, but you are looking for something that isn’t here.”); ?></p><?php endif; ?>
</div><?php get_sidebar(); ?>
</div>It seems to be working just fine for the header.
The topic ‘Wrapper Div Not Affecting Loop’ is closed to new replies.