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.

How to I create a many-to-many relationship between two custom post types?

Give type A and type B, I'd like to be able to show all B's that relate to a given A, and all A's that relate to a given B.

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

WordPress doesn't have a way to natively do many-to-many relationships, have a look at the Posts 2 Posts plugin to enable this.

share|improve this answer
    
many to many is special realtion type sometimes you need to add extra field can p2p plugin do that ? –  user26044 Jan 15 '13 at 10:29
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.