테마를 개발하다보면 썸네일 URL만 가져와야 할 필요성이 있다.
where can i get a payday loan in pennsylvania
썸네일 URL만 가져올 경우 다음의 소스를 이용하면 손쉽게 가져올 수 있으니 참고하기 바란다.
$attachment_id = get_post_thumbnail_id( $post_id );
$image_attributes = wp_get_attachment_image_src($attachment_id);
이미지 URL : $image_attributes[0]
Leave a Reply