我试图用裁剪来显示特征图像。我的functions.php 代码为
add_theme_support(\'post-formats\', array(\'post\'));
add_theme_support(\'post-thumbnails\');
add_image_size(\'post-image\', 750, 400, true);
还有我的
index.php 代码为
<img src="<?php $image =wp_get_attachment_image_src(get_post_thumbnail_id
($post->ID), \'post-image\' ); echo $image[0] ?>" alt="" />
如何在帖子中通过裁剪显示我的图像。谢谢