> $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 1 ) ); if ( '' != get_the_post_thumbnail() ) : the_post_thumbnail( 'featured-thumbnail-featured' ); elseif ( $images ) : $image = array_shift( $images ); echo wp_get_attachment_image( $image->ID, 'featured-thumbnail-featured' ); else : ?>