Title: [Plugin: NextGEN Gallery] Displaying thumbnails &#8211; get_children type function?
Last modified: August 19, 2016

---

# [Plugin: NextGEN Gallery] Displaying thumbnails – get_children type function?

 *  [hotspurme](https://wordpress.org/support/users/hotspurme/)
 * (@hotspurme)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-displaying-thumbnails-get_children-type-function/)
 * Hi
 * I’m not sure if this is a complicated request or not.
 * I have a wordpress page which shows the titles of the latest posts. What I want
   to do is display a thumbnail next to these titles if the post contains an image
   or gallery.
 * One solution is to use the custom_fields when adding the post but I want to run
   this with WordPress MU and hence want it as user friendly as possible.
 * What I think should be possible is to see if a post contains an image/gallery
   and if it does then to display this image as a thumbnail. Is there a variable/
   function for nextgen similar to [http://codex.wordpress.org/Function_Reference/get_children](http://codex.wordpress.org/Function_Reference/get_children)
   which returns if a post contains an attachement.
 * This is effectively want I want to do but using NextGen [http://wordpress.org/support/topic/195811?replies=21](http://wordpress.org/support/topic/195811?replies=21)
 * Any help would be great.
 * Cheers

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

 *  [Michael Fields](https://wordpress.org/support/users/mfields/)
 * (@mfields)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-displaying-thumbnails-get_children-type-function/#post-1115333)
 * I use this code inside the loop:
    [http://wordpress.org/support/topic/282027?replies=2](http://wordpress.org/support/topic/282027?replies=2)
 *  Thread Starter [hotspurme](https://wordpress.org/support/users/hotspurme/)
 * (@hotspurme)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-displaying-thumbnails-get_children-type-function/#post-1115372)
 * Thanks 🙂
 * Does that work when the image is inserted into the post using NextGen?
 *  [Michael Fields](https://wordpress.org/support/users/mfields/)
 * (@mfields)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-displaying-thumbnails-get_children-type-function/#post-1115426)
 * No, There’s no need to insert the image into the post at all, The script will
   get the first image that was uploaded as an attachment to the given post.

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

The topic ‘[Plugin: NextGEN Gallery] Displaying thumbnails – get_children type function?’
is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Michael Fields](https://wordpress.org/support/users/mfields/)
 * Last activity: [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-displaying-thumbnails-get_children-type-function/#post-1115426)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
