Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress-阻止特色图片被裁剪?_Wordpress - Fatal编程技术网

Wordpress-阻止特色图片被裁剪?

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

如何防止我的帖子的特色图片被裁剪

这是我在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( '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?