Beginner: Relationships between 2 CPT’s
-
Hi
I have just statrted to use Pods, I tried it last year and didn’t understand what was going on, so I used a different plugin.Anyway, I want to relate 2 different CPTs as they have the same field.
First CPT: Deceased
First Name Text
Surname Text
Age Number
Address Text
Burial Date Date
Clergy Taxonomy
Grave Number Bidirectional & connected to Grave=>Grave NumberSecond CPT: Grave
Grave Number Bidirectional & connected to Deceased=>Grave Number
Photo File / Image / VideoGrave Template:
<p>Grave Number: {@grave_number}</p> {@photo_of_grave._img.medium} <hr> <h3>Other People buried in this Grave</h3> <ul class=""> [each grave_number] <li><a href="{@permalink,esc_url}">{@post_title}</a> <ul> <li>Grave Number: {@grave_number}</li> <li>Age: {@age}</li> <li>Address: {@address}</li> <li>Burial Date: {@burial_date}</li> <li>Clergy: <a href="{@clergy.permalink}">{@clergy.name}</a></li> </ul> </li> [/each] </ul>
I have set up Grave Number to be Bi-Directional/Relationship in the Deceased CPT and Grave Number in Grave CPT the same.
Becaase there maybe more people buried in the same Grave, I have selected Multiselect but that just shows the Names of the people and not the Grave Number.
The Grave CPT should be on the 1:Many side, so I should be alright adding all the Graves by themselves but I can’t as I have to select the people first, which is wrong.
How can I set this up correctly please or is it set up correctly?
Thanks
Morris
- The topic ‘Beginner: Relationships between 2 CPT’s’ is closed to new replies.