• <!-- NOTE: If you need to make changes to this 
    
    file, copy it to your current theme's main
    	directory so your changes won't be 
    
    overwritten when the plugin is upgraded. -->
    
    <!-- Start of Post Wrap -->
    <div class="post hentry ivycat-post">
    
     <div class="one-fourth first">
    <h2 class="entry-title"><a href="<?php 
    
    the_permalink(); ?>"><?php the_title(); ?></a></h2>
        <div class="post-img">
    	  <?php the_post_thumbnail( $size, $attr ); 
    
    ?>
       </div>
      </div>
       <div class="one-fourth">
       <div class="post-innercontent">
            <?php the_excerpt(); ?>
        </div>
    
       </div>
      <div class="one-fourth">
    <h2 class="entry-title"><a href="<?php 
    
    the_permalink(); ?>"><?php the_title(); ?></a></h2>
        <div class="post-img">
    	  <?php the_post_thumbnail( $size, $attr ); 
    
    ?>
       </div>
      </div>
       <div class="one-fourth">
       <div class="post-innercontent">
            <?php the_excerpt(); ?> 
    
       </div>   
    
      </div>
      </div>
      <!-- // End of Post Wrap -->

    That is my code on the custom template to display two posts per row side by side. However on the actual page the same post gets repeated.

    See this link for how the posts are getting duplicated.

    I think I am missing some key PHP code to display the next post but I am not able to figure out what it is. Any help would be appreciate

    http://wordpress.org/plugins/posts-in-page/

  • The topic ‘Success with template, but duplicate posts’ is closed to new replies.