• Resolved loosefast

    (@loosefast)


    Is it possible to create a custom post type that allows you to select fields from another custom post type, as a popup selector in the edit screen? For example: You are adding a post for Shows, you have another custom post type called Guests. You want to look up the Name field from the Guests posts, perhaps also the Guest image?

    http://wordpress.org/plugins/pods/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Josh Pollock

    (@shelob9)

    Yes it is. We have relationship fields, whose value can be an item in another content type. Because these relationships, can be bi-directional, you are able to set it up so when you add guests to an item in your shows CPT, that change can be automatically reflected in the guests CPT as well.

    http://pods.io/docs/learn/field-types/relationship/

    Thread Starter loosefast

    (@loosefast)

    hey thanks. Two more puzzlers:

    Using the Show/Guests example, I would also want the Guest name in the Show post to link to the Post about the Guest.

    I’m also confused about whether to add the Guests as Posts or as Tags at this point. Some shows have multiple Guests so Tags might work better, but I’d also like to be able to show a listing page of Guests with Featured images.

    Thread Starter loosefast

    (@loosefast)

    I think the answer to my first question is answered in your link

    //show the related post name as link
    echo '<a href="'.get_permalink($id).'">'.get_the_title( $id ).'</a>';

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘create a custom post type that allows you to select fields from another custom’ is closed to new replies.