0 ) {
$custom_loop = new WP_Query( array( 'post_type' => 'page', 'post__in' => $page_ids, 'orderby' => 'post__in' ) );
$i = 0;
if ( $custom_loop->have_posts() ) : ?>
have_posts() ) : $custom_loop->the_post();
$atts = array();
$i++;
if ( has_post_thumbnail() ) {
// CREATE A PROPER ALT ATTRIBUTE FOR THE THUMBNAIL
$image_alt_attribute = get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true);
if ( empty($image_alt_attribute) ) {
$image_alt_attribute = '';
}
$atts = array(
'alt' => $image_alt_attribute,
'class' => 'faith-large-thumbnail'
);
if ( $i == 1 ) {
$atts['loading'] = 'eager';
}
}
?>
-