Buonasera, ho questa query che vorrei riadattare... ora pesca l'immagine in evidenza dei post. Io vorrei che in alternativa, la dove non vi è immagine in evidenza, prendesse la prima nel post..

Mi aiutate per cortesia???



Codice PHP:
<?php query_posts(array( 'showposts'=> '5''orderby' => 'rand''offset'=>'0' )); 

//query_posts('showposts=3&cat='.get_option('lhbox').'&offset=0'); 

if (have_posts()) : while (have_posts()) : the_post(); ?> 
<div id="slider2" class="spotlightwrapperbig">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to 
<?php the_title_attribute(); ?>"> 
<?php if(get_option('thumbok')!="yes"):?> 

[img]<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID'image',true?>&amp;w=320&amp;h=128&amp;zc=1[/img] <?php endif?> 

<?php if(get_option('thumbok')!="no"):?> <span class="teaser-image-small"> 
<?php the_post_thumbnail'hotleft' ); ?> </span> <?php endif?> </a> 
<div class="spotlightIT"> <h2 class="articletitle"> 
<a href="<?php the_permalink() ?>" rel="bookmark"> 
<?php the_title2('''...'true'54'); ?> </a> </h2>