2009-11-29 4 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

관련 문제