get_post()->post_parent, 'fields' => 'ids', 'numberposts' => -1, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ); $total_images = count( $images ); ?>
>
0 ) : $image = array_shift( $images ); $featured_image = wp_get_attachment_image( $image, 'featured-thumbnail-formatted' ); ?>

%2$s photo.', 'This gallery contains %2$s photos.', $total_images, 'twentyfourteen' ), esc_url( get_permalink() ), number_format_i18n( $total_images ) ); ?>

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