2
내가 게시물 내부에 첨부 된 이미지를 표시 할
<?php
$attachment_id = 8; // attachment ID
$image_attributes = wp_get_attachment_image_src($attachment_id); // returns an array
?>
<img src="<?php echo $image_attributes[0]; ?>" width="<?php echo $image_attributes[1]; ?>" height="<?php echo $image_attributes[2]; ?>">
그러나 이것은 내가 필요로하는 것이 아닙니다 .. 내 코드도 이미지를 표시합니다. –
링크가 필요합니까? 답변 됨 updated ... – soju
첨부 된 축소판 이미지를 게시 할 때 클릭하면 전체 크기 이미지를 열어야합니다. –