WordPress.org

Support

Support » Plugins and Hacks » NextGEN Gallery - WordPress Gallery Plugin » [Resolved] [Plugin: NextGEN Gallery] Featured Image is Pulling Thumbnail Only

[Resolved] [Plugin: NextGEN Gallery] Featured Image is Pulling Thumbnail Only

  • Hello Alex,

    I have read the following post and others, but I’m still having issues.
    http://wordpress.org/support/topic/featured-image-not-working-with-nextgen-gallery?replies=10

    WP: 3.1.3
    NGG: 1.7.4
    Theme: http://5thirtyone.com/unstandard-wordpress-theme/

    When I set a featured image from the gallery, it is always pulling in the thumbnail. It should be referencing the large size so it can process that down to the right size, right?

    The theme is trying to create 2 sizes

    I’m new to the featured image thing, especially when trying to pull from NGG.

    index.php

    <?php if ( is_first_post($post->ID) ) { ?>
    	<?php the_post_thumbnail('primary-post-thumbnail'); ?>
    <?php } else { ?>
    	<?php the_post_thumbnail('secondary-post-thumbnail'); ?>
    <?php } ?>

    functions.php

    // Support WordPress post thumbnails
    add_theme_support( 'post-thumbnails' );
    set_post_thumbnail_size( 300, 300, true );
    add_image_size( 'primary-post-thumbnail', 620, 9999 );
    add_image_size( 'secondary-post-thumbnail', 300, 9999 );

    Thank you for your help and great plugin.
    =-)

    http://wordpress.org/extend/plugins/nextgen-gallery/

Viewing 3 replies - 1 through 3 (of 3 total)
  • My current solution to the above is

    index.php

    <?php if ( is_first_post($post->ID) ) { ?>
    	<?php the_post_thumbnail( array(620, 9999) ); //the_post_thumbnail('primary-post-thumbnail'); ?>
    <?php } else { ?>
    	<?php the_post_thumbnail( array(300, 9999) ); //the_post_thumbnail('secondary-post-thumbnail'); ?>
    
    <?php } ?>

    I’m not sure why the functions.php is not working, as it is reading the file, as when I change the default thumbnail size, that works?

    Anyway, HTH,
    =-)

    hi there, this is a good solution, but the image is from thumb_myimage.jpg , so is a very low res thumb, do u have any idea to get full size image, coz im using the image on a bigger size on home page. thanks

    Hello Gulflee,

    The new way I have set up my theme is now pulling the full size image.

    Maybe, when you set your Featured Image, are you making sure the setting is on full size?

    =-)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: NextGEN Gallery] Featured Image is Pulling Thumbnail Only’ is closed to new replies.
Skip to toolbar