• Resolved highprrrr

    (@highprrrr)


    I have two custom post types:

    1. “Landing Pages”
    2. “HR Pages”

    The idea is every department has a landing page. For example:

    One department is Human Resources. So it has a Landing Page called Human Resources (slug: human-resources)

    There are also several pages related to human resources, those are created as a custom post type called “HR Pages”.

    I would like the Landing Page called “Human Resources” to be the parent page of all the HR Pages.

    I see in the CPT UI edit screen there is a field that says “Parent”. But I’m not sure what to put there. The example is confusing.

    The parent slug is human-resources so should I just type that in? Or should I type in Parent: human-resources

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    The “Parent” field is just for customizing the labels and UI used when setting a parent value.

    That said, WordPress doesn’t really offer ways to make parent/child relationships between post types. None that I’ve ever seen at least.

    There are plugins that can associate post type posts with other post type posts, but not necessarily as a parent/child relationship. For example https://www.ads-software.com/plugins/posts-to-posts/

    Not sure if you’re looking for anything specific in regards to permalinks, like “/human-resources/hr-page-one/” with the first part being the Landing page post type, and the second part being from the HR pages.

    Thread Starter highprrrr

    (@highprrrr)

    Ah, thanks for that clarification

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Welcome.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Parent option is confusing’ is closed to new replies.