Title: [Plugin: Posts 2 Posts] Get comments of connected posts ?
Last modified: August 20, 2016

---

# [Plugin: Posts 2 Posts] Get comments of connected posts ?

 *  Resolved [Aurélien Denis](https://wordpress.org/support/users/maigret/)
 * (@maigret)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-get-comments-of-connected-posts/)
 * Hi,
 * I’m trying to get the comment list of the connected posts but it does not return
   the right one.
 * Here is the code : [http://pastebin.com/TLpivewV](http://pastebin.com/TLpivewV)
 * The custom post type for comment is ‘Golf’ and the comment line is at the end.
 * I can send demo link by mail.
 * THANKS!
 * [http://wordpress.org/extend/plugins/posts-to-posts/](http://wordpress.org/extend/plugins/posts-to-posts/)

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

 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-get-comments-of-connected-posts/#post-3006745)
 * That’s because `wp_list_comments()` is lame and retrieves the comments from `
   $wp_query->comments`, instead of checking the $post global.
 * There’s nothing wrong with your code or with P2P, but it seems you will need 
   to do some ugly workarounds to make it work (I’ve never tried it before).
 *  Thread Starter [Aurélien Denis](https://wordpress.org/support/users/maigret/)
 * (@maigret)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-get-comments-of-connected-posts/#post-3006764)
 * Oh too bad… so nothing possible ?
 *  Thread Starter [Aurélien Denis](https://wordpress.org/support/users/maigret/)
 * (@maigret)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-get-comments-of-connected-posts/#post-3006768)
 * Finally, I’ll show them using a Fancybox effect loading their own single_CPT.
   php… 🙂

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

The topic ‘[Plugin: Posts 2 Posts] Get comments of connected posts ?’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Aurélien Denis](https://wordpress.org/support/users/maigret/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-get-comments-of-connected-posts/#post-3006768)
 * Status: resolved