Forums

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

  1. docfloc
    Member
    Posted 3 months ago #

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

    http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/

  2. mitchoyoshitaka
    Member
    Posted 3 months ago #

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

  3. docfloc
    Member
    Posted 3 months ago #

    Hi,
    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. mitchoyoshitaka
    Member
    Posted 3 months ago #

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

Reply

You must log in to post.

About this Topic