The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Can two custom post types be relational? (4 posts)

  1. Dan Poynor
    Posted 5 years ago #

    If I create post type "artwork" and post type "artist" is there a way to connect the two?

    Each post type needs to have its own set of meta box fields for things like media, size, or bio, and contact info.

    When creating an artwork post type it would be great if a pulldown menu was available to select the related artist's name from previously entered artists.

    I can imagine other post types that need to be related also such as product/manufacturer or album/musician.

    Maybe it's possible to leverage the code used for post/author relationships?

    Any insight appreciated.


  2. estevancarlos
    Posted 5 years ago #

    I'm also interested in learning more about this.

  3. Beggars
    Posted 5 years ago #

    This is something I and a few others have been advocating to be added into the core for sometime now to no avail, however you're in luck because an awesome WP developer by the name of Scribu has a plugin called Posts2Posts.

    The plugin allows you to relate one post type to another and I've successfully used it for a large record label website where an artist post type had to be related to store items, CD releases, merchandise and tours (all separate post types).


  4. estevancarlos
    Posted 5 years ago #

    Fantastic. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic