get_row($query, ARRAY_A) as $row ) { $currentParentPageId = $row['post_parent']; } } return $parentPageId; } ?>