Wordpress-阻止特色图片被裁剪?
如何防止我的帖子的特色图片被裁剪 这是我在functions.php上找到的最接近的代码: 函数thickbox\u字段$form\u字段$post{ 取消 $form_字段['image-size'] ) 谢谢Wordpress-阻止特色图片被裁剪?,wordpress,Wordpress,如何防止我的帖子的特色图片被裁剪 这是我在functions.php上找到的最接近的代码: 函数thickbox\u字段$form\u字段$post{ 取消 $form_字段['image-size'] ) 谢谢 You should use following code in function.php: Syntax: add_image_size( $name, $width, $height, $crop ); Example: add_image_size
You should use following code in function.php:
Syntax: add_image_size( $name, $width, $height, $crop );
Example: add_image_size( 'homepage-thumb', 220, 180, false );
If $crop is set to be "true" then it will be cropped.
Try it and inform me what happened?
You should use following code in function.php:
Syntax: add_image_size( $name, $width, $height, $crop );
Example: add_image_size( 'homepage-thumb', 220, 180, false );
If $crop is set to be "true" then it will be cropped.
Try it and inform me what happened?