Title: Link two post types
Last modified: April 15, 2020

---

# Link two post types

 *  Resolved [grohlbainselic](https://wordpress.org/support/users/grohlbainselic/)
 * (@grohlbainselic)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/link-two-post-types/)
 * I’m creating an online book store.
 * I have two CPTs. Books and Characters. I need to link characters to books and
   those books to their respective characters.
 * On the book page, I’ll output the characters and on the character page I need
   to display all the books that contains the characters.
 * Can CMB2 do this?

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

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [5 years, 11 months ago](https://wordpress.org/support/topic/link-two-post-types/#post-12678155)
 * Honestly, sounds like a job that [https://wordpress.org/plugins/posts-to-posts/](https://wordpress.org/plugins/posts-to-posts/)
   would handle pretty well. I am aware how long ago it’s been since that received
   an update, but I also have not yet heard of it breaking with latest core either.
   It’s also used extensively in a client project I’m a part of.
 * That said, if it’s desired to stick with just CMB2, the closest I can think of
   for a way to do such a thing via meta would be both post types getting some sort
   of select or multicheck or something with a repeater that allows you to choose
   from each post type. You will be able to fill in the available options with the
   posts from each post type as needed to choose from.
 *  Plugin Author [Justin Sternberg](https://wordpress.org/support/users/jtsternberg/)
 * (@jtsternberg)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/link-two-post-types/#post-12678347)
 * CPT-onomies might be worth looking into: [https://wordpress.org/plugins/cpt-onomies/](https://wordpress.org/plugins/cpt-onomies/)

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

The topic ‘Link two post types’ is closed to new replies.

 * ![](https://ps.w.org/cmb2/assets/icon.svg?rev=2866672)
 * [CMB2](https://wordpress.org/plugins/cmb2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cmb2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cmb2/)
 * [Active Topics](https://wordpress.org/support/plugin/cmb2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cmb2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cmb2/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Justin Sternberg](https://wordpress.org/support/users/jtsternberg/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/link-two-post-types/#post-12678347)
 * Status: resolved