Title: Implementing relationship between custom post types
Last modified: August 22, 2016

---

# Implementing relationship between custom post types

 *  [Balint Toth](https://wordpress.org/support/users/tothbalint/)
 * (@tothbalint)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/implementing-relationship-between-custom-post-types/)
 * 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)

 *  [Tim Nash](https://wordpress.org/support/users/tnash/)
 * (@tnash)
 * Spam hunter
 * [11 years, 6 months ago](https://wordpress.org/support/topic/implementing-relationship-between-custom-post-types/#post-5506983)
 * Probably the best way to do this currently is with a plugin like post2post – 
   [https://wordpress.org/plugins/posts-to-posts/](https://wordpress.org/plugins/posts-to-posts/)

Viewing 1 replies (of 1 total)

The topic ‘Implementing relationship between custom post types’ is closed to new
replies.

## Tags

 * [custom fields](https://wordpress.org/support/topic-tag/custom-fields/)
 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)
 * [custom theme](https://wordpress.org/support/topic-tag/custom-theme/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Tim Nash](https://wordpress.org/support/users/tnash/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/implementing-relationship-between-custom-post-types/#post-5506983)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
