<?php else : ?><img src="<?php bloginfo('template_url'); ?>/img/resimyok.jpg" alt="<?php the_title(); ?>" />Öne çıkarılan resim sorgusu yaparken if döngüsünden sonra else diyerek yukarıdaki kodu uygulayabilirsiniz. Böylece öne çıkarılan resim olmadığında belirtmiş olduğunuz resim gösterilecektir.
hocam malesef olmadı kodar bu şekilde
<?php if(has_post_thumbnail()) { the_post_thumbnail(); }
elseif( $thumbnail = get_post_meta($post->ID, 'resim', true) ){?>
<img src="<?php echo $thumbnail;?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" width="250" height="220" />
<?php }else { ?><img src="<?php bloginfo('template_url'); ?>/images/hgtucelcom.jpg" alt="<?php the_title(); ?>" />
<?}?>