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

I'd like to make a site about choirs, composers, conductors and singers. And so far I decided that I need to make a custom post type for "piece" -- any piece can be associated with choir[s], composer, conductor and singer[s].

I could do this with taxonomies (tags), assigned to every "piece". But I need to be able to write about conductors, too. So, I need to create another post type?

So, now I have "piece", "conductor", "composer" post types. And I can use Posts 2 Posts plugin to interconnect them.

But in some cases conductor may act as a soloist -- and it seems that I could create "person" type, but anyway I can not say that "piece"<--(conductor)-->"person" and "piece"<--(soloist)-->"the_same_person" with posts2posts.

Actually I think that I need these post types (should I use tags for some?): piece, conductor, composer, soloist, collection (CD or live performance) and I need for some of them to have custom fields (creation year, publication year etc) -- hope this can be done too by other means. I guess I could add custom fields to piece and put "conductor_id" here.

Do I overcomplicate things?

How this could be done?


UPDATE: Thanks, scribu; I was wrong: it looks like posts2posts is what I need.

share|improve this question
up vote 3 down vote accepted

You only need to define two post types: 'piece' and 'person' and a connection field 'role'.

See https://github.com/scribu/wp-posts-to-posts/wiki/Connection-information

share|improve this answer
Very interesting and attractive, i need to try this. Thanks! Anyway, I guess I need to create post type "collection", too.. May be some other. – brownian Oct 26 '11 at 12:51
Make sure to upvote and accept the answer afterwards. – scribu Oct 26 '11 at 12:52
yes, i know how stackexchange works.) I need some reputation to vote, anyway. And now I need to draw with pencil more .) – brownian Oct 26 '11 at 12:53
Yes, it seems I need exactly that. Sorry, I've said that p2p could not do this .) So, I will try, thank you! – brownian Oct 26 '11 at 15:56
I got fatal error on activating it. – user15677 Apr 30 '12 at 13:24

Your Answer


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.