I am trying to achieve many to many relationship between two custom Post Types. This is exactly my problem: many to many, but the solution seems to be very complicated, and actually I can't manage to run it properly. I would like to write as simple solution as possible and achieve this:

Custom Post Types: Movies and Actors.

I would like to choose Actor trough Metabox while creating Movie. I would like also to choose Movie trough Metabox while creating Actor.

I know that there isn't any native solution for that (or maybe is?). What are the necessary parts only to run it properly?

I don't want to use any third party plugins.


New contributor
Maciek Nowak is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • How about using a custom taxonomy that you'd assign to both the post types? Have you tried/considered that? – Sally CJ Feb 14 at 0:40
  • It's a complicated problem, so you're either going to need a solution that's as complicated as that, or a plugin, but you've ruled out both... – Jacob Peattie Feb 14 at 3:15
  • @SallyCJ Yeah, I was thinking about that but this solution seems to be a bit limiting. Or maybe I am doing it wrong.. I will try once again. – Maciek Nowak Feb 14 at 12:38
  • @JacobPeattie yeah.. I am looking for a less complicated solution. But maybe there isn't such one. – Maciek Nowak Feb 14 at 12:39

Your Answer

Maciek Nowak is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.