How can I set full image thumbnail on category pages? Image should be small in dimensions but not been cropped. Currently my theme WP-Davici (Solostream) use “Get The Image” plugin to generate thumbnail. you may have a look at http://ideabroad.com/
These are two different things:
How can I set full image thumbnail on category pages
Image should be small in dimensions but not been cropped.
In order to display the full-size image thumbnail, use:
<?php the_post_thumbnail( 'full' ); ?>
In order to display a box-resized, rather than hard-cropped, image, you need to tell WordPress to box-resize the image rather than hard-crop it, via the
add_image_size() call used to create the thumbnail image size..
$heightparameters passed to
$height, as appropriate.
You define this action in the
add_image_size() call in
functions.php, like so:
<?php add_image_size( $name, $width, $height, $crop ); ?>
The fourth parameter,
$crop, specifies whether to hard-crop (
true ) or to box-resize (
false ) the image.