scribu/wp-posts-to-posts — Issue #120: Allow querying multiple connection types
Author: scribu
Created: 2012-02-23 21:31:24+00:00
State: open
Labels: feature

Example:

```
$query = new WP_Query( array(
'connected_items' => get_queried_object_id(),
'connected_type' => array( 'person_to_interview', 'video_to_person' ),
) );
```

The SQL is easy:

```
WHERE (p2p_type = 'person_to_interview' AND p2p_from = 123)
OR (p2p_type = 'video_to_person' AND p2p_to = 123)
```

Requested in #199 and http://wordpress.org/support/topic/plugin-posts-2-posts-get-all-connections-at-once