我在我的网站上切换主题,图像的大小被添加到每个图像的末尾,如下所示:http://cdn.site.com/wp-content/uploads/ruzowitzky-192x134.jpeg
这192x134
是图像的大小,或者作为另一个例子http://cdn.site.com/wp-content/uploads/django-unchained2-600x250.jpg
上面的图像显示为空白,但是当我禁用 W3TC 或删除保留它的大小时,http://cdn.site.com/wp-content/uploads/django-unchained2.jpg
它可以正常工作。我该怎么做才能使新的缩略图大小起作用?
以下是我拥有的不同尺寸:
//Add Featured Image to Posts
if ( function_exists( 'add_theme_support' ) ) {
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 640, 321, true );
}
//Main Thumbnail Size
if ( function_exists( 'add_image_size' ) ) {
add_image_size( 'category-thumb', 192, 134, true );
}
//Post Thumbnail Size
if ( function_exists( 'add_image_size' ) ) {
add_image_size( 'post-thumb', 184, 126, true );
}
//Video Thumbnail Size
if ( function_exists( 'add_image_size' ) ) {
add_image_size( 'video-thumb', 286, 151, true );
}
//Slider Thumbnail Size
if ( function_exists( 'add_image_size' ) ) {
add_image_size( 'slider-thumb', 640, 250, true );
}
//Sidebar Thumbnail Size
if ( function_exists( 'add_image_size' ) ) {
add_image_size( 'sidebar-thumb', 47, 47, true );