Large
$post->ID))); # Args for getting attachments $args = array( 'post_type' => 'attachment', 'numberposts' => null, 'post_status' => null, 'post_parent' => $post->ID ); # Get the attachments $attachments = get_posts($args); echo '

'.__('Attachments', 'albumcoverfinder').''.$count.' '.__('files attached', 'albumcoverfinder').''; echo ''.__('View', 'albumcoverfinder').'

'; echo '
'; # Show attachments if it exists any if ($attachments) : foreach ($attachments as $attachment) : $attachment_url = wp_get_attachment_image_src( $attachment->ID, 'thumbnail'); $display_attachment_url = $attachment_url[0]; echo '
'; echo ''; echo ''; echo '
'; endforeach; endif; echo '
'; ?>