Added the ability to handle attachments with multiple post parents