Thanks for the reply, but I need a more autometic way for do it ??
So, after long reading and surfing, I wrote this function.
<?php function postfile() {
if ( $files = get_children(array(
'post_parent' => get_the_ID(),
'post_type' => 'attachment',
'order' => 'ASC',
'orderby' => 'ID',
'post_mime_type' => 'application',)))
{
foreach( $files as $file ) {
$attachmenturl=wp_get_attachment_url($file->ID);
$file_title = $file->post_title;
echo '<a href="'.$attachmenturl.'">'.$file_title.'</a>';
}
} else {
echo "Nessun allegato disponibile";
}
}
?>