Latest post shows twice
-
My last blog post shows twice (as post number one and two) and I can’t figure out why. Here’s my index.php
<?php get_header(); ?> <div id="content"> <?php if ( is_home() ) { query_posts($query_string . '&cat=-2'); } ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1> <p class="postmetadata">I <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php the_time('l, F jS, Y') ?> | <?php comments_popup_link('0 Kommentarer »', '1 Kommentar »', '% Kommentarer »'); ?> | <?php if(function_exists('wp_print')) { print_link(); } ?> | <a href="<?php trackback_url(true); ?> " rel="trackback">Trackback</a></p> <span style="display:none;"><?php todays_overall_count($post->ID, '', '', '', '0'); ?></p></span> <div class="entrytext"> <?php the_content('Forts?¤tt l?¤sa artikeln »'); ?> </div> </div> <?php endwhile; ?> <div class="navigation"> <div class="alignleft"><?php next_posts_link('??ldre inslag') ?></div> <div class="alignright"><?php previous_posts_link('Nyare inslag') ?></div> </div> <?php else : ?> <h2 class="center">Vi hittar inte det du s??ker.</h2> <p class="center">Vi hittar ingen matchning till den s??ktermen. Prova n?¥got annat.</p> <?php include (TEMPLATEPATH . "/searchform.php"); ?> <?php endif; ?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
Has anyone experienced a similar problem and found a solution?
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Latest post shows twice’ is closed to new replies.