get_ancestor now returns ancestors for posts and search