• Resolved mburtis

    (@mburtis)


    I’m using this plugin to set up a relationship between two custom post types: courses (a repeating field) and contracts. Ideally, we would be able to have a single course associated with multiple contracts. After setting up Panda Pods, though, I think this isn’t possible? Thought I’d check before moving on to another solution.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Coding Panda

    (@codingpanda)

    Hi @mburtis

    Sorry for the delay, just noticed your topic.

    I am afraid that an item in a repeating field can’t be associated with multiple parents.

    If I understand it correctly, to associate a single course with multiple contracts, we don’t need a repeater field. You can achieve it by using the Pods’ Relationship field:
    1. create Course as a custom post type
    2. create Contract as a custom post type
    3. In the Contract pod, add a relationship field named “Course” and relate it to Post Type Course

    However, that is under the assumption that each Contract could only have one course. If you want a Contract to have multiple shared courses, the repeater field can play a role. From Step 3, you can change it to
    3. Create an Advanced Content Types named it something like Associated Course. In its pod, add a relationship field named “Course” and relate it to Post Type – Course
    4. In the Contract pod, add a Repeater Field and link it up with the Associated Course table

    In this way, you only need to create a Course once and share it with multiple Contracts, whilst a Contract can have multiple Courses.

    Hope it helps.

    Thanks for using the plugin.

    Plugin Author Coding Panda

    (@codingpanda)

    @mburtis Actually, Pods’ Relationship field provides multiple select. You can use it as a soluction if it is appropriate.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Repeating Fields Belonging to Multiple Parents’ is closed to new replies.