Title: [Plugin: Posts 2 Posts] Multiple P2P metaboxes
Last modified: August 20, 2016

---

# [Plugin: Posts 2 Posts] Multiple P2P metaboxes

 *  Resolved [superwillyfoc](https://wordpress.org/support/users/superwillyfoc/)
 * (@superwillyfoc)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-multiple-p2p-metaboxes/)
 * Hi,
    I have 2 post types which I want to be related using Posts 2 Posts. In the“
   A” post type I need to have two metaboxes, where the editor can check some “B”
   post types in both metaboxes. I need it because I want to display the related“
   B” types in the “A” template in two different blocks. Is it possible with the
   actual P2P API?
 * [http://wordpress.org/extend/plugins/posts-to-posts/](http://wordpress.org/extend/plugins/posts-to-posts/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-multiple-p2p-metaboxes/#post-2933005)
 * > I need it because I want to display the related “B” types in the “A” template
   > in two different blocks.
 * Could you be more specific? What is the criteria for differentiating between 
   the two blocks?
 *  Thread Starter [superwillyfoc](https://wordpress.org/support/users/superwillyfoc/)
 * (@superwillyfoc)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-multiple-p2p-metaboxes/#post-2933088)
 * Hi Scribu,
    thanks for your reply. I mean something like this:
    - [Example.png](http://cl.ly/image/2T3A1J1H2V3F)
 * As an example, I have the post type “Landing” and the post type “Album”. I need
   that the user could choose some “albums” in two different metaboxes while editing
   a “landing” post type. I think I need it, because in the template (frontend) 
   there should be two different blocks showing both manual selections.
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-multiple-p2p-metaboxes/#post-2933099)
 * The cleanest way would be to create 2 distinct connection types, between the 
   same post types:
 *     ```
       p2p_register_connection_type( array(
         'name' => 'other_albums',
         'from' => 'album',
         'to' => 'landing'
       ) );
   
       p2p_register_connection_type( array(
         'name' => 'recommended_albums',
         'from' => 'album',
         'to' => 'landing'
       ) );
       ```
   
 *  Thread Starter [superwillyfoc](https://wordpress.org/support/users/superwillyfoc/)
 * (@superwillyfoc)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-multiple-p2p-metaboxes/#post-2933100)
 * Thank you very much!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: Posts 2 Posts] Multiple P2P metaboxes’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [superwillyfoc](https://wordpress.org/support/users/superwillyfoc/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-multiple-p2p-metaboxes/#post-2933100)
 * Status: resolved