自从新版本的Wordpress(3.5)发布以来,图像管理器和自定义图像大小之间似乎不兼容。
以前我在函数中使用过。php:
add_action( \'after_setup_theme\', \'addemo_setup\' );
function addemo_setup() {
add_theme_support( \'post-thumbnails\' );
add_image_size( \'featured-image\', 375, 500, true );
}
// Insert Custom Sized Image Into Post Using Media Gallery
add_filter( \'image_size_names_choose\', \'custom_image_sizes_choose\' );
function custom_image_sizes_choose( $sizes ) {
$custom_sizes = array(
\'featured-image\' => \'Featured Image\'
);
return array_merge( $sizes, $custom_sizes );
}
当我添加缩略图时,我没有任何选择。是否有人遇到过此问题?