Title: [Plugin: Posts 2 Posts] each_connected doesn&#039;t seem to work
Last modified: August 20, 2016

---

# [Plugin: Posts 2 Posts] each_connected doesn't seem to work

 *  Resolved [waltervos](https://wordpress.org/support/users/waltervos/)
 * (@waltervos)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-each_connected-doesnt-seem-to-work/)
 * Since the 0.9 update (though I’m not sure which version I was running before 
   this) P2P_Connection_Type->each_connected() isn’t working for me. P2P_Connection_Type-
   >get_connected() works fine.
 * I’ve posted [the relevant code](http://pastebin.com/LwQ4tp6B) to pastebin. Can
   somebody take a look to see if I’m missing something?
 * [http://wordpress.org/extend/plugins/posts-to-posts/](http://wordpress.org/extend/plugins/posts-to-posts/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-each_connected-doesnt-seem-to-work/#post-2309047)
 * There was a bug in each_connected(). ([commit](https://github.com/scribu/wp-posts-to-posts/commit/e8c09ae6d4fe0024cb9a41bd0ffa5300208c4112))
 * It should work in the [development version](http://downloads.wordpress.org/plugin/posts-to-posts.zip).(
   0.9.1-alpha).
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-each_connected-doesnt-seem-to-work/#post-2309189)
 * (nevermind)
 *  Thread Starter [waltervos](https://wordpress.org/support/users/waltervos/)
 * (@waltervos)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-each_connected-doesnt-seem-to-work/#post-2309218)
 * Nevermind? Updating to 0.9.1 did work for me. I ran into something else though.
   In filters p2p_connected_args and p2p_connectable_args, was $args[‘post_type’]
   always an array? It is now, and I’m wondering if it’s supposed to be.
 * ‘Nuff respect for your great work on this fantastic plugin by the way! This opens
   up so many interesting possibilities for WordPress development :).
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-each_connected-doesnt-seem-to-work/#post-2309242)
 * > Nevermind?
 * I was going to ask about the SQL query, but then I remembered the ‘monogamy’ 
   thread. 🙂
 * > was $args[‘post_type’] always an array? It is now, and I’m wondering if it’s
   > supposed to be.
 * Yes, it’s an array now because of this:
 * [https://github.com/scribu/wp-posts-to-posts/issues/17](https://github.com/scribu/wp-posts-to-posts/issues/17)

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: Posts 2 Posts] each_connected doesn't seem to work’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [scribu](https://wordpress.org/support/users/scribu/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-each_connected-doesnt-seem-to-work/#post-2309242)
 * Status: resolved