• Resolved Vigil

    (@vigil)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • See the forum rules about posting code.

    What do you mean about it, “Affecting the loop”? Why would it? It’s outside of the loop.

    Cheers

    PAE

    Thread Starter Vigil

    (@vigil)

    I’m closing this; my problem requires a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Wrapper Div Not Affecting Loop’ is closed to new replies.