-1, 'meta_key' => '_thumbnail_id', 'post_type' => 'post' ) ); if ( have_posts() and ! is_singular() ) : $least_one_featured_image = false; $counter = 0; $total = 0; while ($the_query->have_posts() ) : $the_query->the_post(); if ( has_post_thumbnail()) : $beholdimage = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'Beholdthumb', false, '' ); if ( ! $beholdimage ) : break; # break, if the featured image is not available. endif; $total++; endif; endwhile; rewind_posts(); while ($the_query->have_posts() ) : $the_query->the_post(); if ( has_post_thumbnail()) : if ( has_post_thumbnail()) : $beholdimage = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'Beholdthumb', false, '' ); if ( ! $beholdimage ) : break; # break, if the featured image is not available. endif; $counter++; endif; ?>
  •  
    "> ← "> →