Support

Account

Home Forums Backend Issues (wp-admin) Only show fields of parent on Hierarchical / Page type posts types

Solved

Only show fields of parent on Hierarchical / Page type posts types

  • 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.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Only show fields of parent on Hierarchical / Page type posts types’ is closed to new replies.