scribu/wp-posts-to-posts — Issue #29: Allow many-to-one with additional limit parameter
Author: beeksiwaais
Created: 2011-10-12 10:15:05+00:00
State: open

Allow many-to-one with additional limit parameter.

$clients_relationship = p2p_register_connection_type( array(
'from' => array('realisation', 'dossier'),
'to' => 'client',
'reciprocal' => true,
'limit' => 1
) );