Title: Duplicate post problem
Last modified: August 21, 2016

---

# Duplicate post problem

 *  [adamito](https://wordpress.org/support/users/adamito/)
 * (@adamito)
 * [13 years ago](https://wordpress.org/support/topic/duplicate-post-problem/)
 * Hi,
 * I use Posts 2 Posts to build an educational plateform.
 * The connection is between “contenu” and “branche” :
 *  p2p_register_connection_type( array(
    ‘name’ => ‘contenu_to_branche’, ‘from’
   => ‘contenu’, ‘to’ => ‘branche’, ‘cardinality’ => ‘many-to-many’, ‘reciprocal’
   => true, ‘title’ => array( ‘from’ => ‘Branche’, ‘to’ => ‘Contenus de la branche’)));
 * On “contenu” can be connected to many “branche”
 * My problem is duplicated posts in a query :
 *  $args = array(
    ‘connected_type’ => ‘contenu_to_branche’, ‘connected_items’ 
   => $branches, ‘nopaging’ => false, ‘post_type’ => ‘contenu’, ‘posts_per_page’
   => 10, ‘order’ => ‘DESC’, ‘orderby’ => ‘ID’, );
 * $branches is an array that contain ids of “branches”.
 * The issue is that i get the same “contenu” many times, because it’s connected
   to many “branche”.
 * Is there any solution ?
 * Regards
 * [http://wordpress.org/extend/plugins/posts-to-posts/](http://wordpress.org/extend/plugins/posts-to-posts/)

The topic ‘Duplicate post problem’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [adamito](https://wordpress.org/support/users/adamito/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/duplicate-post-problem/)
 * Status: not resolved