Updates how parent ids are attached in add-post to handle multiple parents.