Mike's code

Mike's code - untested, needs trouble shooting, commented out the call
to get_child_pages()