2009-11-29 23 views

答えて

14

あなたのsingle.phpテンプレートでこれを試してください:あなたのサポートのための

$args = array(
'post_type' => 'attachment', 
'post_mime_type' => 'image', 
'post_parent' => $post->ID 
); 
$images = get_posts($args); 
foreach($images as $image): 
echo wp_get_attachment_image($image->ID, 'medium'); 
endforeach; 
+1

おかげで多くのことを。 – fatihturan

+0

私はこれのための美しい解決策がないことを認識し始めています。 – ViniciusPires

関連する問題