Improved is_tree function. If page is an ancestor. Child, Grandchild…

This site has a function to test if a page is a child or not. Problem is that it only goes one level deep. Use this to go further.

This goes in the functions file.


Leave a Reply

Your email address will not be published. Required fields are marked *

− 3 = 1