0
You need to loop through the attachments within your post loop, replace the section of code you posted with this (put this together from some other code I found related to a similar problem, but couldn't test it): </BasicDetails> <?php $args = array( 'post_parent' => $post->ID, ...