if(is_single()){ ?> $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full'); ?> } else { ?> } ?>