hi Teodor,
After I delete the file with the remove link, the file still exits on the server.
and how can i echo”; the path /file/filename.mp3 for each attachment ?, im almost there with this code
$args = array(
‘post_type’ => ‘attachment’,
‘numberposts’ => -1,
‘post_status’ => null,
‘post_parent’ => $post->ID
);
$attachments = get_posts( $args );
if ( $attachments ) {
foreach ( $attachments as $attachment ) {
echo ‘
- ‘;
the_attachment_link( $attachment->ID, true );
}
}
endwhile; endif; ?>