• Hello!

    I am experimenting with custom post types and custom fields, and I would like to ask a question.

    I would like to create a very simple implementation of a movie-registry page, I have created 2 custom post types, movies and actors. I am using Advanced Custom Fields and Custom Post Type UI plugins.

    I am curious, what would be the best way to create relations between movies and actors? I would like to create the single actor page that it shows all the data related to that actor, and the movies where this actor is present. I am thinking about some kind of taxonomy in the movie post type, or to add some kind of custom field to movies where the actor could be selected, and in the single-actor.php file, create some kind of query for the movies, where the custom field value is equal to the actor?

    Thank you very much for your answers!

    With best regards,
    Balint

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Implementing relationship between custom post types’ is closed to new replies.