First post showing twice in news feed.
-
Hey there, if anyone can help me out, I can’t seem to find the glitch in my code. Basically my page is showing the latest news post twice at the top. I made sure it was just the first post by changing a date on the latest post, and it made doubles of the next post.
Here is where it might be, but could be mistaken, thank you if any help is suggested.
<?php /* Template Name: News/Blog Page */ get_header(); ?> <!-- BEGIN MAIN WRAPPER --> <div id="main-wrapper"> <!-- BEGIN MAIN --> <div id="main"> <!-- BEGIN MEDIA WRAPPER --> <div id="media-wrapper"> <h3 class="section-title"><?php the_title(); ?></h3> <?php $args = array( 'post_type' => 'post', 'paged'=>$paged ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); ?> <?php include( TEMPLATEPATH . '/includes/show-posts.php' ); ?> <?php endwhile; ?> </div> <!-- END MEDIA WRAPPER --> <?php kriesi_pagination($loop->max_num_pages); ?> </div> <!-- END MAIN --> <?php get_sidebar(); ?> <?php get_footer(); ?>
- The topic ‘First post showing twice in news feed.’ is closed to new replies.