function get_first_image() {
global $post, $posts; $first_img = '';
ob_start(); ob_end_clean();
$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);
$first_img = $matches[1][0];
return $first_img;
}
특성 이미지를 사용하지 않을때 목록에서 썸네일로 활용