title: Get the from and to object from p2p_id in WordPress - WP Posts to Posts Plugin
body: <p>I'm now using <a href="https://github.com/scribu/wp-posts-to-posts/wiki" rel="nofollow">WP Posts to Posts</a> plugin in wordpress.</p>
  
  <p>And now I made some links between posts and posts, users and users, or posts and users.</p>
  
  <p>And in all three cases above, I want to do more with the p2p plugin.</p>
  
  <p>For example, I may fetch the p2p_id first:</p>
  
  <pre><code>$users = get_users( array(
      'connected_type' =&gt; 'multiple_authors',
      'connected_items' =&gt; $post
  ) );
  
  foreach($users as $user) {
      $p2p_id = $user-&gt;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
  
  }
  </code></pre>
  
  <p>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.</p>