var bir yöntemi bir saniye yazıyım kodları..
Alıntı
<?php $id =$post->ID;
$the_content =$wpdb->get_var("SELECT post_content FROM $wpdb->posts WHERE ID = $id");
$pattern = '!<img.*?src="(.*?)"!';
preg_match_all($pattern, $the_content, $matches);
$image_src = $matches['1'][0]; ?>
bu kodla konunun içindeki ilk resmi çekebilirsin...
yazdırma içinde
Alıntı
<img src="<?php if($image_src != '') { echo $image_src; } ?>"
alt="<?php the_title(); ?>" class="left" width="200px" height="200px" />