0

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?

1
  • Yeah...use Scribu's Posts2Posts plugin.
    – tollmanz
    Commented Aug 9, 2011 at 4:23

1 Answer 1

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.

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