Create wp-list-attached-documents.php

This Wordpress snippet displays a list of any attached Word documents or PDF files.