Hi,
We are new to Metabox and wordpress, we tried finding solution to our problem, however we were not able to find the solution:
We are trying to build a school management site and we have created two custom post types:
1. Class
2. Section
and have setup a relationship between these two (From Class To Section), which is working fine, like when we add a class then on the right hand side, it shows connects to section box and when we add a section then it shows a box on the right, connects from Class box.
Now we have a created another custom post type Student and we have also created a group of custom fields where we've added a field of post type Class.
Now we want when we select a class while adding a student then the available sections (which we selected while creating the class) should be displayed so that we can choose the section for the student being added.
We've tried adding a field section which is of post type and tried various options in query qrgs (see screenshot) but nothing worked out, please help.
Fields for Student Post Type: https://ibb.co/bjtTnS5
Section Field Details: https://ibb.co/FBJHcbY
What should we be doing here?