Title: Loop in thumbnails from the same custom post
Last modified: August 19, 2016

---

# Loop in thumbnails from the same custom post

 *  [devotee](https://wordpress.org/support/users/devotee/)
 * (@devotee)
 * [15 years ago](https://wordpress.org/support/topic/loop-in-thumbnails-from-the-same-custom-post/)
 * Hey. I´m switching from categories to custom posts, and on my current page I´
   m looping in thumbnails from the same category as the one displaying on single.
   php. That is, on single.php i loop in my content and below the content comes 
   thumbnails from the same category.
 * I would like to do the same thing now, but with custom post instead. I´m not 
   much of a coder, so I dont know really how to change my current code to check
   for the same custom posts instead. Maybe someone can help me with this?
 * My code looks like this now:
    [http://pastebin.com/mnfGQitC](http://pastebin.com/mnfGQitC)
 * I just want to change it so it looks for posts in the same custom post! Hoping
   for some helpful soul out there 🙂

The topic ‘Loop in thumbnails from the same custom post’ is closed to new replies.

## Tags

 * [custom post](https://wordpress.org/support/topic-tag/custom-post/)
 * [loop](https://wordpress.org/support/topic-tag/loop/)
 * [thumbnails](https://wordpress.org/support/topic-tag/thumbnails/)

 * 0 replies
 * 1 participant
 * Last reply from: [devotee](https://wordpress.org/support/users/devotee/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/loop-in-thumbnails-from-the-same-custom-post/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
