画像をある程度切り抜こうとしています。ワードプレスで特定のサイズにクロップ画像を表示
私は
add_image_size('other', 105, 70, true);
$imageString.= '<div><a href="' . $linkstring . '">' . get_the_post_thumbnail($post->ID, 'other;) . '</a></div>';
を使用して試してみました。しかし、その正確な大きさにトリミングしていないようです。
Ides?
wp_get_attachment_image_srcがパラメータとしてポストIDを負いません。アタッチメントIDが必要です。 http://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src – lamarant
ありがとう、あなたの訂正を反映しました;) –