Title: Connected Custom Post Types
Last modified: August 20, 2016

---

# Connected Custom Post Types

 *  [Brian Hall](https://wordpress.org/support/users/domain101/)
 * (@domain101)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/connected-custom-post-types/)
 * Looking for opinions on best-practices connecting 2 Custom Post Types together,
   in a one-to-many or many-to-many situation.
 * For example (1-to-many), creating an Author CPT and Book CPT (each with their
   own fields and data, but assigning an Author to a Book.
 * For example (many-to-many), creating an Actor CPT and Movie CPT (each with their
   own fields and data), and assigning multiple Actors to multiple Movies.
 * I’d like for them to function similarly to taxonomies, in that the URL structuring
   would look similar to:
 * /author/Stephen-King/ (Stephen King’s profile)
    /author/Stephen-King/books/ (
   List of SK books)
 * /actors/Leonardo-di-Caprio/ (Leo’s profile)
    /actors/Leonardo-di-Caprio/films(
   Leo’s movies) /movies/Titanic/ (Titanic’s synopsis, screenshots, etc…) /movies/
   Titanic/actors/ (list of Titanic’s cast)
 * For both scenarios, it would be preferable to keep both CPTs under the same “
   Books” or “Movies” section in the Admin area, but this isn’t strictly required.
 * What do you think? Anyone done something similar? I’m not actually building a
   book or movie website, but it seemed like an easy example of the type of connections
   I need to make.
 * Thanks!

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

 *  [atheistponcho](https://wordpress.org/support/users/atheistponcho/)
 * (@atheistponcho)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/connected-custom-post-types/#post-2300438)
 * Were you able to find a solution to this? I’d like to do exactly the same thing.
 *  Thread Starter [Brian Hall](https://wordpress.org/support/users/domain101/)
 * (@domain101)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/connected-custom-post-types/#post-2300439)
 * Unfortunately, no. I settled on a less elegant solution that involved adding 
   some extra fields to taxonomies. Poor substitute for the solution I really wanted,
   but I didn’t have the time to really research a solution.
 * If you come up with something though, I’d love to hear about it!
 *  [eliezerisrael](https://wordpress.org/support/users/eliezerisrael/)
 * (@eliezerisrael)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/connected-custom-post-types/#post-2300460)
 * Looks like [http://wordpress.org/extend/plugins/posts-to-posts/](http://wordpress.org/extend/plugins/posts-to-posts/)
   could do it.

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

The topic ‘Connected Custom Post Types’ is closed to new replies.

## Tags

 * [cpt](https://wordpress.org/support/topic-tag/cpt/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [eliezerisrael](https://wordpress.org/support/users/eliezerisrael/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/connected-custom-post-types/#post-2300460)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
