Title: [Plugin: Posts 2 Posts] Trouble with nested connections
Last modified: August 20, 2016

---

# [Plugin: Posts 2 Posts] Trouble with nested connections

 *  Resolved [imfromio](https://wordpress.org/support/users/imfromio/)
 * (@imfromio)
 * [14 years ago](https://wordpress.org/support/topic/plugin-posts-2-posts-trouble-with-nested-connections/)
 * I’m not a great programmer but am loving this plugin and have gotten it to work
   exactly as I want – except for one thing. I’m building a Dinner Club site and
   have recipes connected to events (recipes_to_events) and recipes connected to
   users (recipes to users). Now when I list the events on a single or archive page
   I want to list the recipes and their associated users that are connected to the
   event.
 * So far I’ve gotten the recipes to list on the event post, but I’m at a loss as
   to how to get the users for those recipes listed.
 * Any help would be greatly appreciated!
 * [http://wordpress.org/extend/plugins/posts-to-posts/](http://wordpress.org/extend/plugins/posts-to-posts/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [imfromio](https://wordpress.org/support/users/imfromio/)
 * (@imfromio)
 * [14 years ago](https://wordpress.org/support/topic/plugin-posts-2-posts-trouble-with-nested-connections/#post-2749652)
 * The solution turned out to be quite simple. I was trying to use each_connected
   but this simple nested query worked well:
 * [http://pastebin.com/KPz4kSjt](http://pastebin.com/KPz4kSjt)

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Posts 2 Posts] Trouble with nested connections’ 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/)

 * 1 reply
 * 1 participant
 * Last reply from: [imfromio](https://wordpress.org/support/users/imfromio/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/plugin-posts-2-posts-trouble-with-nested-connections/#post-2749652)
 * Status: resolved