/**
* The loop that displays posts.
*
* The loop displays the posts and the post content. See
* https://codex.wordpress.org/The_Loop to understand it and
* https://codex.wordpress.org/Template_Tags to understand
* the tags used in it.
*
* This can be overridden in child themes with loop.php or
* loop-template.php, where ‘template’ is the loop context
* requested by a template. For example, loop-index.php would
* be used if it exists and we ask for the loop with:
*
get_template_part( 'loop', 'index' );
*
* @package WordPress
* @subpackage anIMass
* @since anIMass 7.0
*/
?>
max_num_pages > 1 ) : ?>
<?php
/* Start the Loop.
*
* In Twenty Ten we use the same loop in multiple contexts.
* It is broken into three main parts: when we’re displaying
* posts that are in the gallery category, when we’re displaying
* posts in the asides category, and finally all other posts.
*
* Additionally, we sometimes check for whether we are on an
* archive page, a search page, etc., allowing for small differences
* in the loop on each template without actually duplicating
* the rest of the loop that is shared.
*
* Without further ado, the loop:
*/ ?>
<div id="post-” >
<a href="” title=”” rel=”bookmark”>
<?php
$images = get_children( array( ‘post_parent’ => $post->ID, ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’, ‘orderby’ => ‘menu_order’, ‘order’ => ‘ASC’, ‘numberposts’ => 999 ) );
if ( $images ) :
$total_images = count( $images );
$image = array_shift( $images );
$image_img_tag = wp_get_attachment_image( $image->ID, ‘thumbnail’ );
?>
<?php printf( __( 'This gallery contains %2$s photos.’, ‘anIMass’ ),
‘href=”‘ . get_permalink() . ‘” title=”‘ . sprintf( esc_attr__( ‘Permalink to %s’, ‘anIMass’ ), the_title_attribute( ‘echo=0’ ) ) . ‘” rel=”bookmark”‘,
$total_images
); ?>
<?php edit_post_link( __( 'Edit', 'anIMass' ), ' ‘, ‘‘ ); ?>
<div id="post-” >
<?php edit_post_link( __( 'Edit', 'anIMass' ), ' ‘, ‘‘ ); ?>