if ( is_singular() ) { global $post; if ( current_theme_supports('post-thumbnails') && has_post_thumbnail( $post->ID ) ) { $thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'thumbnail', false); echo ''; } echo ''; if ( get_the_excerpt() != '' ) echo ''; }