Get post's attachments and display it in a div