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.

Possible Duplicate:
Linking Two Post Types

I have a post type, referred to as "Press Release" and another called "People". I need to be able to connect the two together. MY end goal is to have a drop down of "People" post types within the "Press Release" post type that allows you to select an author.

Is there a way to create relational post types and am I using that term correctly?

share|improve this question

marked as duplicate by scribu, toscho Mar 4 '12 at 16:11

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Yeah...use Scribu's Posts2Posts plugin. –  tollmanz Aug 9 '11 at 4:23
add comment

1 Answer 1

There are several ways to do this. Do you really need a whole post type for People? You could do this as a custom taxonomy and assign it to the Press Release post type.

You could create a custom user role, and then utilize that to assign an "author" to each Press Release.

If you want to keep everything you have now as is, your best bet would be to create a custom meta box, which populates a select field with all of the "People" listed in it. Then save it using update_post_meta()

You could also utilize the post_parent field and assign the ID of the "People" post to it.

As you can see, there are several options. Perhaps others have more.

share|improve this answer
add comment

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