5
Wordpress에서 내 게시물의 첨부 된 이미지를 어떻게 표시 할 수 있습니까?첨부 된 이미지를 Wordpress에 게시하려면
Wordpress에서 내 게시물의 첨부 된 이미지를 어떻게 표시 할 수 있습니까?첨부 된 이미지를 Wordpress에 게시하려면
당신의 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;
감사합니다 귀하의 지원을 많이. – fatihturan
나는 이것을위한 아름다운 해결책이 없다는 것을 깨닫기 시작했습니다. – ViniciusPires