• 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://ww.wp.xz.cn/plugins/posts-to-posts/

Viewing 1 replies (of 1 total)
  • Thread Starter fahdoos

    (@fahdoos)

    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.