Thanks, sort of works for the moment. But the client will be adding more child pages themselves and they are not going to be able to, know how to or want to edit the function with additional id numbers. Now if there was a parameter that said ‘exclude_child_of’, then that would be great.