Title: Connections limit
Last modified: August 21, 2016

---

# Connections limit

 *  [fahdoos](https://wordpress.org/support/users/fahdoos/)
 * (@fahdoos)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/connections-limit/)
 * In a many-to-one to relation. When a single post has been connected to more than
   X number of times, is it possible to stop this post from appearing in the connectable
   list?
 * I was able to display how many times the item has been connected to via the append_count_to_candidate_title
   filter, but would love to remove items entirely if they’re over a certain threshold.
 * Please advise.
 * [http://wordpress.org/plugins/posts-to-posts/](http://wordpress.org/plugins/posts-to-posts/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [fahdoos](https://wordpress.org/support/users/fahdoos/)
 * (@fahdoos)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/connections-limit/#post-4279272)
 * BTW, I’ve done this by:
 *     ```
       $connected = p2p_type( 'posts_to_repost' )->get_connected( $post );
       		if($connected->post_count > 0){
       			$title = '(<strong>' . $connected->post_count . 'x</strong>) '.$title;
       		}
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Connections limit’ 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
 * 1 participant
 * Last reply from: [fahdoos](https://wordpress.org/support/users/fahdoos/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/connections-limit/#post-4279272)
 * Status: not resolved