I have this section in my website where i use wp_get_attachment_image_src()
to get all the images associated with the post, but now you want to get a certain size (size: listing_grid):
<?php $args = array(
'post_parent' => $post->ID,
'post_type' => 'attachment',
'numberposts' => 15, // -1, show all
'post_status' => 'any',
'post_mime_type' => 'image',
'orderby' => 'menu_order',
'order' => 'ASC'
);
$images = get_posts($args);
if($images) { ?>
<images>
<?php foreach($images as $image) { ?>
<image><![CDATA[<?php echo wp_get_attachment_url($image->ID); ?>]]></image>
<?php } ?>
</images>
<?php } ?>