eklentisizde yapılır eklentiye gerek yok.
<?php
function resimsec() {
global $post, $posts;
$resimbir = '';
ob_start();
ob_end_clean();
$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);
$resimbir = $matches [1] [0];
return $resimbir;
}
?>
kodunu functions.php ekle
<?php
$resmim= get_post_meta($post->ID, "resim", true);
if ($resmim!="") { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('%s', 'kubrick'), the_title_attribute('echo=0')); ?>">
<img class="alignleft" src="<?php echo $resmim ?>" width="100" height="84" alt="" /> </a>
<?php } else { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('%s', 'kubrick'), the_title_attribute('echo=0')); ?>"><img class="alignleft" src="<?php echo resimsec(); ?>" width="100" height="84" alt="" /></a>
<?php } ?>
kodunuda resmin nerede çıkmasını istiyorsan oraya ekle boyutlarını kendine göre düzenlersin.
özel alan eklenen resim değerli resmi çeker veya konudaki ilk resmi thumb yapar.