I wrote a custom AJAX function in which I have assigned a post type to be a child of another post type. In one function I am looping through those child posts, and I want to update the database to reflect the post_parent(the post which the child posts belong to). Problem is, I cannot grab that post's ID from anywhere to update the db. Any suggestions?