[resolved] [Plugin: Yet Another Related Posts Plugin] Comments assigned to wrong posts (4 posts)

  1. docfloc
    Posted 6 years ago #

    looks like comments get assigned to wrong posts (related posts). Not always, just sometimes. YARPP is messing something up with the loop.


  2. @docfloc, you marked this as resolved... were you able to figure out your issue? I'd love to know either way.

  3. docfloc
    Posted 6 years ago #

    thanks for asking and thanks for your great plugin.
    I thought at the beginning that the problem is YARPP related, but it looks like it was due to one of my own calls to WP_Query. I added wp_reset_query() and now everything looks ok.
    Ugly to resolve before i found http://core.trac.wordpress.org/ticket/4741

  4. @docfloc - huh, I actually have an even more hacky approach in YARPP itself which you'll see if you search for $current_query in magic.php.

Topic Closed

This topic has been closed to new replies.

About this Topic