tags:

views:

14

answers:

1

hey guys, i hope there are a few wordpress experts out there that can help me with ths. i'm using:

the_post_thumbnail('medium');

to view a post-thumbnail that can be set for every post in the backend.

however, if there is no postthumbnail set i want to print out a different image. any idea how i can check the function to find out if a post-thumbnail for a specific post is set?

thank you

A: 
<?php if( get_post_thumbnail_id() ):
    the_post_thumbnail( 'medium' );
else: ?>
    <img src="some_other_image.png" alt="" />
<?php endif; ?>
Gavin