Вы можете получить прикрепленные изображения с помощью:
$args = array(
'post_type' => 'attachment',
'post_mime_type' => 'image',
'numberposts' => 1,
'orderby' => 'menu_order',
'order' => 'ASC',
'post_parent' => $post->ID
);
$images = get_posts($args);
и отобразить его так:
echo wp_get_attachment_image($images[0]->ID, $size='attached-image');