I understand the concept of parent/child relationships and have implemented one. Let's say I have a ParentPost and a ChildPost. In the ParentPost editor I want to add an existing ChildPost – not a new ChildPost. If I add a child and give it the same name as an existing ChildPost then it creates two children with the same name.
I don't the editor to create ChildPosts at the ParentPost level – as they may duplicate existing ChildPosts - which have to be unique in my database. Each childPost represents an archeological artefact and will have a unique cataloguing number.
Is there a way to do this? For example, to get a pop-up or check box list of all the database objects that can be children of this parent post?
Thank-you
Hi simonlucas,
It not possible within Types, and it is already in our to-do list as a feature request.
To do it, you need edit your child post, and manually select parent post in the "Fields table" section
Regards
Luo
Thank-you for your response. Looking forward to additional developments in Types.
I am too looking for the feature.
I have a parent (project) and a child (news).
The workflow when maintaining the website will be to create projects. And only relate project to news when the news is created. This works fine with the drop-down on the child.
Right now I would love it if i could at least remove the ability for my users to edit a news-item on the project-edit-page. The editors will be confused and they might think that they remove a relationship and not deleting a post. As long as the featured simonlucas requested is not existing it would be better for me to simply hide the area regarding the News-child posts. I have another cpt which is a child, and it should not be hidden.
Can you help with this in PHP code?