title: How to get all attachments for a wordpress post?
body: <p>I am currently attempting to get all the attachments that are attached to each individual post on WordPress and allow a user to download the attachments. </p>
  
  <p>I have looked into the <code>get_attached_media()</code> function in WordPress but I am not sure how to make the files downloadable once I get the media. </p>