While building an attachment.php template for a project I opted to customize the loop to properly display an image within a figure tag and the caption within figcaption to aid accessibility. Additionally if the file is not an image it will provide a button that can be styled along with a mime type. The following … Continue reading “Creating a custom attachment loop for images and other files in WordPress”