here is my code so far:
<?php
$args = array(
'post_type' => 'attachment',
'mime_type' => 'audio/mpeg',
'numberposts' => -1,
'post_status' => null,
'post_parent' => null, // any parent
);
?>
<div class="post" id="page-thumb-list">
<h2 class="page-title">Audio</h2>
<?php $posts = get_posts($args);
foreach ($posts as $post) : start_wp(); ?>
<div class="item-audio">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<?php the_content(); ?>
</div>
<?php endforeach; ?>
but it returns all attachments. any help would be appreciated. thanks in advance