'page', 'post_status' => 'publish', 'post__in' => (array)$page_content, 'posts_per_page' => 3, ); $callout_query = new WP_Query($callout_arg); if ($callout_query->have_posts()):?>

have_posts()) : $callout_query->the_post(); global $post; $post_thumbnail_id = get_post_thumbnail_id($post->ID); $featured_image = wp_get_attachment_image_src($post_thumbnail_id , 'auto-car-callout-image'); $excerpt = substr(get_the_excerpt(), 0 , 140); $title_attribute = the_title_attribute( 'echo=0' ); $thumbnail_id = get_post_thumbnail_id( get_the_ID() ); $img_meta = get_post_meta( $thumbnail_id, '_wp_attachment_image_alt', true ); $img_alt = ! empty( $img_meta ) ? $img_meta : $title_attribute; ?>
<?php echo esc_attr($img_alt); ?>