scribu / wp-posts-to-posts

Efficient many-to-many connections between posts, pages, custom post types, users.
http://wordpress.org/plugins/posts-to-posts/
969 stars 260 forks source link

WP Query that excludes posts with connections #551

Closed yaronguez closed 6 years ago

yaronguez commented 6 years ago

Hi guys, does anyone know of a way to write a WP Query for posts that excludes posts with parent or child connections? What would be the most efficient way to do something like this?

yaronguez commented 6 years ago

I ended up throwing together a plugin that does this. If anyone wants it: https://github.com/yaronguez/posts-to-posts-exclude

Seems to work as advertised. Feedback welcome.