The below is starting after you do your query:
$slide_list = array();
if ( $slides->have_posts() ) {
while ( $slides->have_posts() ) {
Grab the next slide using next_post to grab it without stomping globals
$slide = $slides->next_post();
$slide_id = $slide->ID;
Your image title is your post title:
$slide_title = $slide->post_title;
Your href is your permalink
$slide_href = get_permalink( $slide );
Your description is your post content or excerpt
$slide_content = $slide->post_content;
$slide_excerpt = $slide->post_excerpt;
If you want the width and height, you can grab that as follows:
$image_data = wp_get_attachment_image_src( $slide_id, 'thumbnail');
$image_url = $image_data[0];
$width = $image_data[1];
$height = $image_data[2];
# do something here ...
$slide_list[] = array(
'id' => $slide_id,
'title' => $slide_title,
'href' => $slide_href,
'content' => $slide_content,
'image_w' => $width,
'image_h' => $height
);
}
}
Hopefully that helps!
The main thing is to just cycle through them.
If you want to see all of the available data, use the following in the look:
echo "<pre>" . print_r($slide, true) . "</pre>";
That should show you all of the returned fields for each slide.