To insert code in a forum thread or comment wrap it in code tags: <code>...</code>.
nextGEN featured image in posts
  • Hi KaptinLin,

    my question is similar to http://kaptinlin.com/support/discussion/comment/3799/. But i want to use nextGEN gallery images as featured images in posts. When I add featured picture from a nextGEN gallery just a grey box shows up. Is there a solution for that?

    Many thanks in advance.

    Best regards
    newww
  • 4 Comments sorted by
  • Hi newww,

    Maybe you can learn from http://wordpress.org/support/topic/featured-image-not-working-with-nextgen-gallery

    I will look into the code if i get some times.

    Regards,
    KaptinLin
  • Hi KaptinLin,

    thank you. I understand the problem. It seems difficult to modify themeGenerator.php so that the dimensions are not queried. It would please me if you can watch the code again if you have time.

    Best regards
    newww
  • Hello newww,

    Just look into the code.

    You can edit on 'striking/framework/helpers/themeGenerator.php'


    change the code in line 262

    $image_src_array = wp_get_attachment_image_src(get_post_thumbnail_id(),'full', true);

    To

    $id = get_post_thumbnail_id();
    if(stripos($id,'ngg-') !== false && class_exists('nggdb')){
    $nggImage = nggdb::find_image(str_replace('ngg-','',$id));
    $image_src_array = array(
    $nggImage->imageURL,
    $nggImage->width,
    $nggImage->height
    );
    }else{
    $image_src_array = wp_get_attachment_image_src($id,'full', true);
    }


    Regards,
    KaptinLin
  • Hello KaptinLin,

    sorry for my late response and thank you very much. This Solution works great.

    Best regards
    newww
This discussion has been closed.
All Discussions