Title: [Plugin: Posts 2 Posts] How to call multiple connected posts
Last modified: August 19, 2016

---

# [Plugin: Posts 2 Posts] How to call multiple connected posts

 *  [mlovelock](https://wordpress.org/support/users/mlovelock/)
 * (@mlovelock)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-how-to-call-multiple-connected-posts/)
 * Hi,
 * Firstly, really great plugin, thanks!
 * I have two post types: customA and customB – it’s a bothways relationship.
 * I need to be able to call all the Custom As that are related to some of Custom
   Bs, so can I just specify several IDs in the ‘connected’ query var? And if so,
   what format do they take? e.g.
 *     ```
       $args = array(
       'post_type' => 'customA',
       'connected' => '123,456', // these IDs taken from a query on customB
       );
       $my_query = new WP_Query( $args );
       ```
   
 * Thanks.
 * [http://wordpress.org/extend/plugins/posts-to-posts/](http://wordpress.org/extend/plugins/posts-to-posts/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-how-to-call-multiple-connected-posts/#post-1954140)
 * Might want to take a look at this thread:
 * [http://wordpress.org/support/topic/plugin-posts-2-posts-how-to-call-two-post-types-connected-in-one-query](http://wordpress.org/support/topic/plugin-posts-2-posts-how-to-call-two-post-types-connected-in-one-query)
 * As a side-effect of that, yes it’s possible now:
 *     ```
       $args = array(
       'post_type' => 'customA',
       'connected' => array( 123, 456 ),
       );
       $my_query = new WP_Query( $args );
       ```
   
 * You’ll need the [development version](http://downloads.wordpress.org/plugin/posts-to-posts.zip)(
   0.6-alpha).

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Posts 2 Posts] How to call multiple connected posts’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [scribu](https://wordpress.org/support/users/scribu/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-how-to-call-multiple-connected-posts/#post-1954140)
 * Status: not resolved