• Resolved decaelegance

    (@decaelegance)


    I just recently changed the format of my default WP index page. And I made sure that I didn’t add or subtract any important codes or anything.

    The first post of the page looks right, but the second and third posts look completely different.

    Why is that? The following is my code.

    <?php get_header(); ?>

    <div id=”content” class=”narrowcolumn”>

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <h2><?php the_time(‘F jS, Y’) ?> <!– by <?php the_author() ?> –></h2>
    <div align=”center”><b>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></b> | <?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?></div></div>

    <div class=”entry”>
    <?php the_content(‘Read the rest of this entry »’); ?>
    </div>

    <p class=”postmetadata”>Posted in <?php the_category(‘, ‘) ?> | <?php edit_post_link(‘Edit’, ”, ‘ ‘); ?>
    </div>

    <?php endwhile; ?>

    <div class=”navigation”>
    <div class=”alignleft”><?php next_posts_link(‘« Previous Entries’) ?></div>
    <div class=”alignright”><?php previous_posts_link(‘Next Entries »’) ?></div>
    </div>

    <?php else : ?>

    <h2 class=”center”>Not Found</h2>
    <p class=”center”>Sorry, but you are looking for something that isn’t here.
    <?php include (TEMPLATEPATH . “/searchform.php”); ?>

    <?php endif; ?>

    </div></div>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WP posts not following the index code.’ is closed to new replies.