I'm using the following PHP conditional statement to display featured images:
<?php if(is_category('blog-posts')) {
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-thumb' ); }
else {
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); }
?>
The code works as is, but don't I need to include <?php endif; ?>
?