Title: loop: exclude duplicates
Last modified: December 20, 2018

---

# loop: exclude duplicates

 *  [gereby](https://wordpress.org/support/users/gereby/)
 * (@gereby)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/loop-exclude-duplicates/)
 * i am working on a news page. i have 5 different news cateogories which i loop
   in 3 ways
 * for the latest post as a large article [loop type=post count=1]
    for the 3 next
   posts as artcles with a small image [loop type=post count=3 offset=1]
 * then i show several older posts as lists, sorted by category [for each=category][
   loop …]
 * PROBLEM:
    in the categories list the 4 latests post occur, too.
 * QUESTION:
    can i exclude those posts. that are shown on top? (like putting the
   id’s in an array $latest and exclude them in the final loop?)

The topic ‘loop: exclude duplicates’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-shortcode_766976.svg)
 * [Custom Content Shortcode](https://wordpress.org/plugins/custom-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-shortcode/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [gereby](https://wordpress.org/support/users/gereby/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/loop-exclude-duplicates/)
 * Status: not resolved