Title: [Plugin: NextGEN Gallery] Featured image problems
Last modified: August 20, 2016

---

# [Plugin: NextGEN Gallery] Featured image problems

 *  [gmox512](https://wordpress.org/support/users/gmox512/)
 * (@gmox512)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-featured-image-problems/)
 * The theme I’m using: [Super Skeleton](http://themeforest.net/item/super-skeleton-wp-responsive-minimal-beautiful/647570)
   from themeforest which uses the featured image to populate portfolio pages.
 * On my site, [peakglass](http://peakglass.com/windows/) the featured image in 
   my “test” post does not show up when it is set as the featured image from NextGen.
   However, the other post whose featured image was populated from the default media
   library works fine.
 * Can anyone help me get the featured image to display properly when setting it
   using NextGen?
 * Thanks!
 * [http://wordpress.org/extend/plugins/nextgen-gallery/](http://wordpress.org/extend/plugins/nextgen-gallery/)

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

 *  Thread Starter [gmox512](https://wordpress.org/support/users/gmox512/)
 * (@gmox512)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-featured-image-problems/#post-2488929)
 * update: setting the featured image through the NextGen gallery doesn’t seem to
   register a url for the image as the src=”” is blank. Here is how the theme page
   template calls the featured image:
 *     ```
       // Grab the URL for the thumbnail (featured image)
       $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' );
       ```
   
 * Any help would be greatly appreciated! Thanks
 *  [edlund](https://wordpress.org/support/users/edlund/)
 * (@edlund)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-featured-image-problems/#post-2488987)
 * There should be a working solution here:
    [http://code.google.com/p/nextgen-gallery/issues/detail?id=348](http://code.google.com/p/nextgen-gallery/issues/detail?id=348)
 * I think Alex is working on putting it into the next update, but if you can’t 
   wait you can try to replace the file your self.
 * /Kristian
 *  Thread Starter [gmox512](https://wordpress.org/support/users/gmox512/)
 * (@gmox512)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-featured-image-problems/#post-2489031)
 * Kristian,
 * Thanks for the reply! I updated the lib/post-thumbnail.php with your code but
   still no luck. The src for the image is still blank. Any other ideas? I’m still
   waiting for a reply from the theme developer.
 *  Thread Starter [gmox512](https://wordpress.org/support/users/gmox512/)
 * (@gmox512)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-featured-image-problems/#post-2489062)
 * Update: The Theme developer says his theme:
 * “will look for the generic post-thumbnail/featured image and use that”
 *  [edlund](https://wordpress.org/support/users/edlund/)
 * (@edlund)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-featured-image-problems/#post-2489072)
 * I misread your post. It seems that he uses the id to get the post thumbnail and
   then gets a build in function to get the image source.
 * The call to wp_get_attachment_image_src does not work on nextgen galleries.
 * Depending on how he uses the $image variable later, it can be changed in the 
   theme to support nextgen images as well.
 *  Thread Starter [gmox512](https://wordpress.org/support/users/gmox512/)
 * (@gmox512)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-featured-image-problems/#post-2489073)
 * Looks like he gets the image url with the following:
 * `<img src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>" />`
 * Any idea on how to add NGG to this?
 * Thanks Again!
 *  [edlund](https://wordpress.org/support/users/edlund/)
 * (@edlund)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-featured-image-problems/#post-2489086)
 * The short and rude answer would be yes I have 🙂
 * The bit longer answer is: obtain the same with the following code replacing your
   two lines:
 *     ```
       <?php if (function_exists("has_post_thumbnail") && has_post_thumbnail() ) {
       the_post_thumbnail('full',array('alt'=>the_title_attribute('echo=0'))); }
       ?>
       ```
   
 * which also checks if there is a thumbnail image before inserting it. The parameter‘
   full’ means that it will take the original size image which is what the code 
   you have posted does. If you have a specified post thumbnail size you want to
   use, you can replace it with ‘post-thumbnail’.
 *  [akdwivedi](https://wordpress.org/support/users/akdwivedi/)
 * (@akdwivedi)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-featured-image-problems/#post-2489256)
 * Thanks edlund, your solution worked for me! I was having similar issue with NGG
   and featured image, but your code really helped!
 * -Abhi
 *  [Halo Diehard](https://wordpress.org/support/users/halo-diehard/)
 * (@halo-diehard)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-featured-image-problems/#post-2489257)
 * I am having the same issue with my Custom Community Theme slideshow; the featured
   image does not show if I take it from NGG, only if I upload the image into the
   default WP and set the featured image from there. For this reason, many of my
   images have to be uploaded into _both_ libraries.
 * I don’t know much about coding, but I do know how to edit files if I’m given 
   what to edit, any suggestions?

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

The topic ‘[Plugin: NextGEN Gallery] Featured image problems’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 9 replies
 * 4 participants
 * Last reply from: [Halo Diehard](https://wordpress.org/support/users/halo-diehard/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-featured-image-problems/#post-2489257)
 * Status: not resolved