Hi,
i am using an wordpress theme with this code for new post rotation:
$headline_preview = get_post_custom_values("preview-big");
if ( is_array($headline_preview) ) { ?>
<img class="teaser-image" src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo get_post_meta($post->ID, 'preview-big',true) ?>&w=390&h=252&zc=1" alt="<?php the_title(); ?>" />
<?php } else { ?>
<img class="teaser-image" src="<?php bloginfo('template_directory'); ?>/images/image-blank-headline.jpg" alt="<?php the_title(); ?>" />
<?php } ?>
You can see, this code is using custom fields, but i want to use the post thumbnail.
Can someone help me to recode it?
Thanks
Jan