• Resolved gkhillboro

    (@gkhillboro)


    Hello,

    Thanks for the great work.

    We have created two Custom post types for an educational website.

    “Educational Courses” and “Tutors” (the staff profiles).

    Inside each Educational Course we would like to link in the Tutor who runs that course (on Facebook this would be like Tagging someone, but we are not using Tags in the WordPress naming convention).

    And on each Tutor’s profile page, we’d like to list the Courses that they run (i.e. the courses they’re related to).

    We have tried using the Relationship field, the posts from the other CPT in question are visible, but when we save the post the relationship isn’t saved

    We are using Elementor to build our page templates. Under the Dynamic Content option for a text box we would hope or expect to see the “Relationship” field, but we don’t see that field.

    What’s the best way to achieve this link/relationship please?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Honestly not sure what the best approach here would be to achieve all this. It is definitely going to be a custom solution that CPTUI can be a part of, but we’re not going to be the only component involved here.

    Thread Starter gkhillboro

    (@gkhillboro)

    Thanks Michael I will check out more functionality in ACF

    • This reply was modified 5 years ago by gkhillboro.
    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Welcome.

    @gkhillboro do you find any solution?
    Same here looking for cinema website.
    I would like to do auto connection like when the actor added in the movie then in actor’s profile movie must show auto without manual adding, is it possible?
    Thank you.

    Thread Starter gkhillboro

    (@gkhillboro)

    @dilse012 Yes! – we used Dynamic Content for Elementor

    https://www.dynamic.ooo/

    You can use ACF Relationship fields:

    https://www.dynamic.ooo/widget/acf-relationship/

    And you can also choose to invert the selection, so it shows reverse relationships, exactly as described.

    i.e. show me all the films this actor is in // show me all the actors in this film. IMDB style.

    Tutorial here. Highly recommended:

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Relationship Between two Custom Post Types’ is closed to new replies.