WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
[resolved] Featured Image is Pulling Thumbnail Only (4 posts)

  1. Jandal
    Member
    Posted 3 years ago #

    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/

  2. Jandal
    Member
    Posted 3 years ago #

    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,
    =-)

  3. gulflee
    Member
    Posted 3 years ago #

    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

  4. Jandal
    Member
    Posted 3 years ago #

    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?

    =-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic