Tell us what you are trying to do?
I am attempting to create a view that includes links to manage other post types. My view currently displays "Request" post types, and a button for each request should be designed to create a new "Inspection" post type, and automatically include this new post in a one-to-many relationship with the current "Request" post displaying in the view.
When clicking "Create Report", I would like that to create a new "Inspection" post and automatically link it to the "Request" post id in the current view.
The "View/Edit" link is what displays and automatically links to the current relationship post when an "Inspection" post is already in a relationship with the listed "Request" post.
Is there any documentation that you are following?
No, can't find much on this thought.
Is there a similar example that we can see?
See included image.
Let me know if there is anything else I can clarify.
~ Alex T
Hello,
You can try these:
1) Create two post types:
- Request
- Inspection
2) Setup one-to-many relationship between "Request" and "Inspection"
3) Setup a post form for creating new child "Inspection" post,
4) In single "Request" post, display above child post form with parent "Request" preselected:
https://toolset.com/course-lesson/selecting-parent-posts-when-using-forms-to-create-child-items/
section "Creating Forms with a Parent Post Preselected"