the_post_thumbnail will echo out the thumbnail so maybe try
if ( has_post_thumbnail() ) {
the_post_thumbnail();
} else {
the_content();
}
Hope this helps
the_post_thumbnail will echo out the thumbnail so maybe try
if ( has_post_thumbnail() ) {
the_post_thumbnail();
} else {
the_content();
}
Hope this helps