WordPress.org

Ready to get started?Download WordPress

Forums

Posts 2 Posts
[resolved] Get comments of connected posts ? (4 posts)

  1. Aurélien Denis
    Member
    Posted 1 year ago #

    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

    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/

  2. scribu
    Member
    Plugin Author

    Posted 1 year ago #

    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).

  3. Aurélien Denis
    Member
    Posted 1 year ago #

    Oh too bad... so nothing possible ?

  4. Aurélien Denis
    Member
    Posted 1 year ago #

    Finally, I'll show them using a Fancybox effect loading their own single_CPT.php... :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.