[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.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Posts 2 Posts] How to call multiple connected posts’ is closed to new replies.