Title: nested relationship posts2post
Last modified: August 24, 2016

---

# nested relationship posts2post

 *  [girish_bhutiya2005](https://wordpress.org/support/users/girish_bhutiya2005/)
 * (@girish_bhutiya2005)
 * [11 years ago](https://wordpress.org/support/topic/nested-relationship-posts2post/)
 * I have wordpress site and use posts2post plugin for relationship.
 * I have 4 custom post type.
 * 1. doctor
    2. Therapy 3. Article 4. Question I have complete all single relationship
   but I want nested relationship. I have [check this link](https://github.com/scribu/wp-posts-to-posts/wiki/each_connected)
   but it not worked for me.
 * I have below relationship.
 * Doctor -> Therapy
    Therapy -> Article
 * So, I want to display all article in Doctors page. Doctor related to Therapy 
   so I can get all therapy of this doctor and then fetch all article of these Therapies.
 * But I don’t know how to implement via coding.
 * [https://wordpress.org/plugins/posts-to-posts/](https://wordpress.org/plugins/posts-to-posts/)

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

 *  [Elías](https://wordpress.org/support/users/eliasgdj/)
 * (@eliasgdj)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/nested-relationship-posts2post/#post-6074712)
 * You can get all the Therapies connected to the Doctor, and then make a secondary
   loop through every Therapy to get their articles, and show them.
 *  [Elías](https://wordpress.org/support/users/eliasgdj/)
 * (@eliasgdj)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/nested-relationship-posts2post/#post-6074713)
 * Duplicate
 *  Thread Starter [girish_bhutiya2005](https://wordpress.org/support/users/girish_bhutiya2005/)
 * (@girish_bhutiya2005)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/nested-relationship-posts2post/#post-6074714)
 * Yes [@elias](https://wordpress.org/support/users/elias/) I have do same thing.
   🙂
 *  [Elías](https://wordpress.org/support/users/eliasgdj/)
 * (@eliasgdj)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/nested-relationship-posts2post/#post-6074715)
 * Ok! I’ve just seen this part: `I don't know how to implement via coding`. If 
   you still need some help, maybe I can assist you.

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

The topic ‘nested relationship posts2post’ 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: [Elías](https://wordpress.org/support/users/eliasgdj/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/nested-relationship-posts2post/#post-6074715)
 * Status: not resolved