12 JULY 2014 - UPDATE

1) We have just released Striking 5.3 maintenance update for those still using the "Original" Striking theme. Please see the theme release thread below for details. This update is only available by the internal update function as this theme is deprecated and no longer available for sale.

2)  Next inline in a few days is Striking MultiFlex. This update is actually "in the can" but we are working on ancillary matters. Expect it sometime in the next few days.

To insert code use <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