>
$post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC' ) ); if ( $images ) : $total_images = count( $images ); if ( empty( $featured_image ) ) { $image = array_shift( $images ); $featured_image = wp_get_attachment_image( $image->ID, 'featured-thumbnail-formatted' ); } ?>

%2$s photo.', 'This gallery contains %2$s photos.', $total_images, 'twentyfourteen' ), 'href="' . get_permalink() . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyfourteen' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"', number_format_i18n( $total_images ) ); ?>

→', 'twentyfourteen' ) ); endif; ?>