Title: [Plugin: Posts 2 Posts] Two connects between the same post_types
Last modified: August 20, 2016

---

# [Plugin: Posts 2 Posts] Two connects between the same post_types

 *  Resolved [bandym](https://wordpress.org/support/users/bandym/)
 * (@bandym)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-two-connects-between-the-same-post_types/)
 * I have two posts types: lawyer and service
 * I have registered two connections, one called “Key Contact” between lawyer and
   service and one called “Practitioner” also between lawyer and service.
 * The problem is that when I am editing a service, and I add a Lawyer using the“
   Key Contact” meta box, upon saving, a connection will also be made for the “Practitioner”
   connection.
 * Is there a way to accomplish this, while avoiding the connection being made for
   both connections?
 * [http://wordpress.org/extend/plugins/posts-to-posts/](http://wordpress.org/extend/plugins/posts-to-posts/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-two-connects-between-the-same-post_types/#post-2384672)
 * There are two ways of doing this:
 * 1) Register a single connection type with a user-editable connection field called‘
   role’.
 * or
 * 2) Register two connection types, one with `'data' => array( 'role' => 'key_contact')`
   and the other with `'data' => array( 'role' => 'practitioner' )`.
 * See
    [https://github.com/scribu/wp-posts-to-posts/wiki/Connection-information](https://github.com/scribu/wp-posts-to-posts/wiki/Connection-information)
 *  Thread Starter [bandym](https://wordpress.org/support/users/bandym/)
 * (@bandym)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-two-connects-between-the-same-post_types/#post-2384734)
 * the ‘data’ => array… approach worked perfectly. Thanks for the quick response.
   Great support and great plugin!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Posts 2 Posts] Two connects between the same post_types’ is 
closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/posts-to-posts_7a8e9d.svg)
 * [Posts 2 Posts](https://wordpress.org/plugins/posts-to-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/posts-to-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/posts-to-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/posts-to-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/posts-to-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/posts-to-posts/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [bandym](https://wordpress.org/support/users/bandym/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-two-connects-between-the-same-post_types/#post-2384734)
 * Status: resolved