I have a custom post type of event that is Hierarchical so that events can have subpages with more details. I want to show costume fields only on the parent or root events pages because there dates and locations only need to set once. It would also be handing to able to display another set of custom fields only on the child pages.
I found a the solution.
In the rules section of I have>
Post Type | is equal to | events
Page Type | is not equal to | Child Page (has parent)
I used “is not equal to | Child Page (has parent)” because this will recognise returns true all root events. If I had it as “is equal to | Parent page (has children)” then it would would not return true when I had a root event page with no children.