nextgen 2.x not cropping based on add_image_size
-
getting really frustrated here. Cant find a way to upgrade my nextgen 1.9 to 2.0. My whole site is based on nextgen and I use the featured images to display my posts.
When I upgrade nextgen plugin to 2.0 all my images are messed up.
in my functions.php I have the following code which used to work fine with the older version of nextgen
if ( function_exists( ‘add_theme_support’ ) ) {
add_theme_support( ‘post-thumbnails’ );
set_post_thumbnail_size( 200, 200, true );
}if ( function_exists( ‘add_image_size’ ) ) {
add_image_size( ‘frozentimes-photo-small’, 200, 246, true );
add_image_size( ‘frozentimes-photo-wide’, 440, 246, true );
add_image_size( ‘frozentimes-text-small’, 200, 150, true );
add_image_size( ‘frozentimes-text-wide’, 440, 150, true );
add_image_size( ‘frozentimes-square’, 200, 200, true );
add_image_size( ‘frozentimes-silde-show’, 1160, 305, true );
}And then I display with
<?php if (has_post_thumbnail()) {
the_post_thumbnail(‘frozentimes-photo-small’);
} ?>With nextgen 2.0 it only resizes but does not crop images.
so the slide-show variant resizes the image to height 305px, but does make it bigger so it fits the width 1160pxplease help!!!
to see the differences please visit:
https://www.frozentimes.net for the version with 1.9.13 (working)
test.frozentimes.net for the version with 2.0.31 (not working)
- The topic ‘nextgen 2.x not cropping based on add_image_size’ is closed to new replies.