Buscando...

Foro » Loading thumbnail instead of full image

This topic has 2 voices, contains 2 replies, and was last updated by  Tim Tiel 96 días ago.

Viewing 3 posts - 1 through 3 (of 3 total)
Tim Tiel

Loading thumbnail instead of full image 16/2/2012 at 7:14 #10012

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.

  • This reply was modified 96 días ago by  Sumolari. Reason: Adding adescriptive title and tags

Reply To: Loading thumbnail instead of full image 16/2/2012 at 16:06 #10028

WP Carousel follows the following order when getting the image of the post:

  1. Value of custom field wp_carousel_image_url (this name can be changed, check “Help” tab in your admin panel for more information).
  2. Thumbnail of the post. This feature was added in WordPress 2.9.
  3. 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.

Tim Tiel

Reply To: Loading thumbnail instead of full image 16/2/2012 at 21:08 #10038

Perfect. I got it working.

Viewing 3 posts - 1 through 3 (of 3 total)

This topic has been closed to new replies.