Sign up ×
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

1 Answer 1

up vote 5 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

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.