
Hello. I’m hoping someone can help me figure out a way to handle this.
I have two core post types on a development project I am working. A post type for the sales staff and a post type for the locations (which have a bi-directional relationship with the sales staff to display the staff at a particular location). These post types have very specific field groups utilized for pages within that type.
The above is already built.
I am trying to get those post types hierarchical, but accessed through another new post type with options for a parent post for both all the sales posts as well as all the location posts, to utilize the page path used for those post types. I need it to be a separate post type because they need unique post fields that the “parent” post within locations and sales should not include.
For example:
domain/sales/sales_person_name/page_specific_to_this_person
domain/location/name_of_location/an_event_happening_at_this_location
I want to create an entirely other post type for child pages of both of these. With attributes available, select from all posts from both the sales staff post type as well as the location post type. Alternatively, if that is not possible, can I change the permalink manually to initially post from the root, but also access perhaps the relationship structure of the permalink to a sales or location?
Is this something achievable?