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.
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)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users