Title: Duplicate posts
Last modified: August 19, 2016

---

# Duplicate posts

 *  [dynamyt100](https://wordpress.org/support/users/dynamyt100/)
 * (@dynamyt100)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/duplicate-posts-5/)
 * Hi. I am using the chaotic soul theme. Pls can someone assist me. IMy first post
   is ‘sticky’. When I add other posts, my first post is duplicated again ! I think
   it might be a problem with the code found below :
 * <!– Next few posts –>
    <?php while(have_posts()) : the_post(); if(!($first_post
   == $post->ID)) : ?>
 *  <div class=”post lastfive” id=”post-<?php the_ID(); ?>”>
    <h2>” rel=”bookmark”
   title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?>
   </h2>
    
   <span class=”postmetadata”>• <?php comments_popup_link(‘No Comments’, ‘1 Comment’,‘%
   Comments’); ?> <?php edit_post_link(‘Edit’, ‘(‘, ‘)’); ?></span>

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/duplicate-posts-5/#post-1206855)
 * The code you’ve posted ois only half of the story and actually looks correct (
   insofar as I can tell from that snippet). If you placed a copy of your index.
   php file in the [WordPress pastebin](http://wordpress.pastebin.ca/), people might
   then be able to spot the problem.
 *  Thread Starter [dynamyt100](https://wordpress.org/support/users/dynamyt100/)
 * (@dynamyt100)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/duplicate-posts-5/#post-1207137)
 * Ok I have done as you suggested thanks. I would appreciate any help. Below is
   the pastebin URL :
 * [http://wordpress.pastebin.ca/1560747](http://wordpress.pastebin.ca/1560747)
 * Dave
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/duplicate-posts-5/#post-1207178)
 * Try changing `if(!($first_post == $post->ID)) : ?>` to `if(!($first_post == $
   post->ID) && !is_sticky()) : ?>`

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Duplicate posts’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [16 years, 8 months ago](https://wordpress.org/support/topic/duplicate-posts-5/#post-1207178)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
