I'm now using WP Posts to Posts plugin in wordpress.
And now I made some links between posts and posts, users and users, or posts and users.
And in all three cases above, I want to do more with the p2p plugin.
For example, I may fetch the p2p_id first:
$users = get_users( array(
'connected_type' => 'multiple_authors',
'connected_items' => $post
) );
foreach($users as $user) {
$p2p_id = $user->p2p_id;
// ********** ATTENTION *********
// Here, I got the p2p_id of the p2p object
// In a general purpose, I want to get the
// from and to object from the p2p_id
}
So, how can I get the from and to object via the p2p_id? I've found over the documentation, but seemed no effective ways.