Conditional Statement: is page a grandchild?
-
Hi,
I need to check if a page is a grandchild with a conditional IF statement to run some code on true.I have searched by and large the Internet, and all I found seemed very promising, but it did not work for me.
How do you check if a page is a grandchild? For my specific purpose, I know the grandfather page’s ID, so the code does not need to generically check if a page is a grandchild of any page, it would be fine if it could check if it is a grandchild of THAT page. Whichever of the two is fine.
Hope someone can help. Thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Conditional Statement: is page a grandchild?’ is closed to new replies.