Title: Hiding duplicate posts
Last modified: August 21, 2016

---

# Hiding duplicate posts

 *  [matatias](https://wordpress.org/support/users/matatias/)
 * (@matatias)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/hiding-duplicate-posts/)
 * Hi. I put another loop in the theme to show a single complete post from a certain
   category, but I don’t want it to appear twice in the bottom posts (I’ve removed
   that category from the Featured Content). I found this solution
    [http://wpengineer.com/1719/filter-duplicate-posts-in-the-loop/](http://wpengineer.com/1719/filter-duplicate-posts-in-the-loop/)
   So I put this code in my added loop `$do_not_duplicate[] = $post->ID;` And now
   I’m supposed to add this code in the main loop `'post__not_in' => $do_not_duplicate`
   Problem is, I don’t know where to put it! I found the beginning of the loop in
   the index.php file, right after I put my “custom” loop. Thanks!

The topic ‘Hiding duplicate posts’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/expound/2.0.1/screenshot.png)
 * Expound
 * [Support Threads](https://wordpress.org/support/theme/expound/)
 * [Active Topics](https://wordpress.org/support/theme/expound/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/expound/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/expound/reviews/)

## Tags

 * [$post->id](https://wordpress.org/support/topic-tag/post-id/)
 * [duplicate posts](https://wordpress.org/support/topic-tag/duplicate-posts/)
 * [loop](https://wordpress.org/support/topic-tag/loop/)

 * 0 replies
 * 1 participant
 * Last reply from: [matatias](https://wordpress.org/support/users/matatias/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/hiding-duplicate-posts/)
 * Status: not resolved