Title: each_connected
Last modified: August 22, 2016

---

# each_connected

 *  [MoBlaise](https://wordpress.org/support/users/moblaise/)
 * (@moblaise)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/each_connected/)
 * I have many-to-many connections created between two custom post types.
 * Is there a way to prevent publishing of duplicate connections when using each_connected
   query?
 * [https://wordpress.org/plugins/posts-to-posts/](https://wordpress.org/plugins/posts-to-posts/)

Viewing 1 replies (of 1 total)

 *  [clariner](https://wordpress.org/support/users/clariner/)
 * (@clariner)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/each_connected/#post-5220926)
 * Are you wanting to limit duplicate connection or just the display of duplicate
   connections?
 * if its the forma the you can do the following
 * p2p_register_connection_type( array(
    … ‘duplicate_connections’ => false ) );
 * This will stop the creation of duplication connections.

Viewing 1 replies (of 1 total)

The topic ‘each_connected’ 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: [clariner](https://wordpress.org/support/users/clariner/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/each_connected/#post-5220926)
 * Status: not resolved