This topic has 2 voices, contains 2 replies, and was last updated by Tim Tiel 96 días ago.
Loading thumbnail instead of full image 16/2/2012 at 7:14
I am have set a featured image in my pages that are getting displayed using your WP Carousel Plugin. Currently it shows the image at 150×150. My featured image is 500×250. I found something that you posted on another forum about it loading the thumbnail size.
I have went into wp-carousel.php and edited this line:
The code is: define(‘WP_CAROUSEL_DEFAULT_THUMBNAIL_SIZE’, ‘thumbnail’);
to this
define(‘WP_CAROUSEL_DEFAULT_THUMBNAIL_SIZE’, ‘large’);
and it still does no change. Any help would be great.
Reply To: Loading thumbnail instead of full image 16/2/2012 at 16:06
WP Carousel follows the following order when getting the image of the post:
- Value of custom field wp_carousel_image_url (this name can be changed, check “Help” tab in your admin panel for more information).
- Thumbnail of the post. This feature was added in WordPress 2.9.
- First image of the post.
WP Carousel only uses constant WP_CAROUSEL_DEFAULT_THUMBNAIL_SIZE in the second case, so if your image is set in the custom field or it is used the first image of the post, it won’t have any effect.
Set the thumbnail of the post and use:
define(‘WP_CAROUSEL_DEFAULT_THUMBNAIL_SIZE’, ‘thumbnail’);
And WP Carousel will load the thumbnail instead of the full image.
This topic has been closed to new replies.