- '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 );
echo '';
echo apply_filters( 'the_title', $attachment->post_title );
echo '
- ';
';
}
}
endwhile; endif; ?>