WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

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