Title: [Plugin: Post Tiles] Using NextGen Gallery thumbnails
Last modified: August 20, 2016

---

# [Plugin: Post Tiles] Using NextGen Gallery thumbnails

 *  Resolved [CoCha](https://wordpress.org/support/users/cocha/)
 * (@cocha)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-post-tiles-using-nextgen-gallery-thumbnails/)
 * Out of the box Post I was unable to use NextGen’s thumbnails.
    So I changed the
   code a bit. pst-files.php line 459 became:
 *     ```
       // Retrieve the featured image.
       				  $id = get_post_thumbnail_id();
                         if(stripos($id,'ngg-') !== false && class_exists('nggdb')){
                             $nggImage = nggdb::find_image(str_replace('ngg-','',$id));
       					  $nggThumb = $nggImage->imageURL;
       					  // split URL in order to recreate an URL to the NextGen thumb
       					  $thePath  = pathinfo( $nggImage->imageURL );
       					  $nggThumb = $thePath['dirname'] . "/thumbs/thumbs_" . $thePath['basename'];
                             $thumb = array(
                                 $nggThumb,
                                 $nggImage->width,
                                 $nggImage->height
                             );
                         } else {
                             $thumb = wp_get_attachment_image_src( get_post_thumbnail_id(), array(350,350));
                        }
       ```
   
 * I also made a little change to $featured-style (line 462)
 *     ```
       $featured_style = "style='background: url(".$url.") 0 0; background-size: contain;' class='featured-image ".$animation_style."'";
       ```
   
 * Now post-tiles shows nextgen’s thumbnails.
 * [http://wordpress.org/extend/plugins/post-tiles/](http://wordpress.org/extend/plugins/post-tiles/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [ethanhackett](https://wordpress.org/support/users/ethanhackett/)
 * (@ethanhackett)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-post-tiles-using-nextgen-gallery-thumbnails/#post-3126341)
 * CoCha,
 * Thanks for posting this fix here. I’m not sure if there’s a way to make the plugin
   work universally with other image plugins. So thanks for posting your updates.
   What I might do is add a link to this post in the FAQ document incase someone
   want’s to use NextGen’s gallery too. It’s a great plugin and I use it too here
   and there.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Post Tiles] Using NextGen Gallery thumbnails’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/post-tiles_ad9991.svg)
 * [Post Tiles](https://wordpress.org/plugins/post-tiles/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-tiles/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-tiles/)
 * [Active Topics](https://wordpress.org/support/plugin/post-tiles/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-tiles/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-tiles/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [ethanhackett](https://wordpress.org/support/users/ethanhackett/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-post-tiles-using-nextgen-gallery-thumbnails/#post-3126341)
 * Status: resolved