- ';
+ foreach ( $attachments as $attachment ) {
+ $output .= '
- '; + $att_title = apply_filters( 'the_title' , $attachment->post_title ); + $output .= wp_get_attachment_link( $attachment->ID , 'thumbnail', true ); + $output .= ' '; + } + $output .= '