Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'd like to be able to choose an object from another custom post type I've created when adding a second type. Similar to the way you can choose an author for a post.

So when creating a post of type B there would be a dropdown of all the post As that the current author has created.

Is there a way to do this?

Thanks for any suggestions or direction.

share|improve this question
    
What do you mean by saying "object". Do you mean custom field data, a category/tag, a taxonomy? –  Wyck Dec 15 '10 at 21:51
    
Sorry, probably the wrong term. I meant creating an item of that type. So for example if post type A were Teams and type B were players. When creating a player I could select which team they are on. –  Sandbox Wizard Dec 15 '10 at 22:44
    
Creating a taxonomy would work if the team name were all I were concerned with, but there are more fields for a team than just the name. –  Sandbox Wizard Dec 15 '10 at 22:46
add comment

1 Answer

up vote 2 down vote accepted

The simplest way is probably this plugin:

Posts 2 Posts http://wordpress.org/extend/plugins/posts-to-posts/

share|improve this answer
    
Perfect, just what I was looking for. Thanks goldenapples –  Sandbox Wizard Dec 26 '10 at 22:36
    
For anyone else having this issue, Posts 2 Posts is a fantastic plugin. Gave me all the tools I needed. –  Sandbox Wizard Mar 2 '11 at 6:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.