Posts displaying differently on homepage
-
The blog displays beautifully when you look at single posts, but on the home page, the text is all squished together. I can’t see a difference in the stylesheets.
The main index stylesheet reads as follows:
\<?php get_header(); ?>
<?php get_sidebar(); ?><div id=”content”>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?><div class=”post” id=”post-<?php the_ID(); ?>”>
<h2>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h2>
<small>by <?php the_author() ?> ~ <?php the_time(‘F jS, Y’) ?> <?php edit_post_link(‘(edit)’); ?></small>
Filed under: <?php the_category(‘, ‘) ?>
</div><div class=”entry”>
<?php the_content(‘Continue reading »’); ?>
<p class=”postmetadata”><?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?></p>
</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>Not Found</h2>
<p>Sorry, but you are looking for something that isn’t here.</p>
<?php include (TEMPLATEPATH . “/searchform.php”); ?><?php endif; ?>
</div>
<?php get_footer(); ?>\
The Single Post stylesheet reads as follows:
\<?php get_header(); ?>
<?php get_sidebar(); ?><div id=”content”>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?><div class=”post” id=”post-<?php the_ID(); ?>”>
<h2>” rel=”bookmark” title=”Permanent Link: <?php the_title_attribute(); ?>”><?php the_title(); ?></h2>
<small>by <?php the_author() ?> ~ <?php the_time(‘F jS, Y’) ?>. Filed under: <?php the_category(‘, ‘) ?>. <?php edit_post_link(‘(edit)’); ?></small><div class=”entry”>
<?php the_content(‘<p>Continue reading »</p>’); ?><div class=”navigation”>
<div class=”alignleft”><?php previous_post_link(‘« %link’) ?></div>
<div class=”alignright”><?php next_post_link(‘%link »’) ?></div>
</div></div>
</div><?php comments_template(); ?>
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
</div>
<?php get_footer(); ?>\
What am I missing?
- The topic ‘Posts displaying differently on homepage’ is closed to new replies.