Title: [Plugin: Posts 2 Posts] Reciprocal connection
Last modified: August 19, 2016

---

# [Plugin: Posts 2 Posts] Reciprocal connection

 *  Resolved [qwik3r](https://wordpress.org/support/users/qwik3r/)
 * (@qwik3r)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-reciprocal-connection/)
 * I have the latest .04 alpha build, trying to generate a reciprocal connection
   I suppose.
 * I create a connection between 2 custom post types: p2p_register_connection_type(‘
   events’, ‘locations’, true);
 * This allows me to connect locations to events. However I would like to output
   all events that are currently connected to that location on the location page,
   so I would assume it would be the reverse however I am unsure how to do this,
   can you please advise?

Viewing 1 replies (of 1 total)

 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-reciprocal-connection/#post-1709201)
 *     ```
       $posts = get_posts( array(
         'suppress_filters' => false,
         'connected_to' => $event_id,
         'post_type' => 'location'
       ) );
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Posts 2 Posts] Reciprocal connection’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [scribu](https://wordpress.org/support/users/scribu/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-reciprocal-connection/#post-1709201)
 * Status: resolved