scribu/wp-posts-to-posts — Issue #94: Infer direction when 'connected_items' => 'any' and 'post_type' is set
Author: scribu
Created: 2012-01-09 20:04:05+00:00
State: open
Labels: feature

```php
p2p_register_connection_type( 'post', 'page' );

...

$q = new WP_Query( array(
'post_type' => 'post',
'connected_items' => 'any'
) );
```

should return all pages that have at least one connection.

Ref: http://wordpress.org/support/topic/plugin-posts-2-posts-wp_query-to-display-cpt-post-that-have-connections-only