• The theme I’m using: Super Skeleton from themeforest which uses the featured image to populate portfolio pages.

    On my site, peakglass 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/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter gmox512

    (@gmox512)

    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

    There should be a working solution here:
    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

    (@gmox512)

    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

    (@gmox512)

    Update: The Theme developer says his theme:

    “will look for the generic post-thumbnail/featured image and use that”

    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

    (@gmox512)

    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!

    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’.

    Thanks edlund, your solution worked for me! I was having similar issue with NGG and featured image, but your code really helped!

    -Abhi

    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.