WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] My comments aren't shown in the right post (9 posts)

  1. MSemlali
    Member
    Posted 2 years ago #

    Hello,

    I am using a theme I created, and I'm having some problems with it.
    So, when I comment a post, then I go to "comments" in my wp-admin, I see that the comment wasn't posted in the right post, it always go to another one.
    Another thing, the Disqus' trackback URL always shows the link of other post.

    NB. I was using Disqus, then I tried LiveFyre and InteseDebate, and I still have the same problem =(

    NB. I don't have this problem if I use other themes, so I think I have problems in mine, please help me to figure out how to fix this.

    Thank you =)

  2. Slobodan Manic
    Member
    Posted 2 years ago #

    MSemlali, can you post a link to a page on your site where this occurs? Or, maybe you can try adding this just before your comments:

    <?php wp_reset_postdata(); ?>

    If you have any custom queries in your template, this might help.

  3. MSemlali
    Member
    Posted 2 years ago #

    Ok I'll try this.
    By the way, this is the website : http://followthegeeks.com

  4. Slobodan Manic
    Member
    Posted 2 years ago #

    Site looks nice :)

    Which post is it exactly that's giving you a headache? Or is it all of them?

    A wild guess is that either related posts or that LinkWithin widget is messing up WordPress default query.

  5. MSemlali
    Member
    Posted 2 years ago #

    I try to deactivate both of them? right?

  6. Slobodan Manic
    Member
    Posted 2 years ago #

    Well, if it's easy to do it, I'd do that first.

  7. MSemlali
    Member
    Posted 2 years ago #

    I think the problem is solved after deactivating the related posts. Now Disqus is showing the right trackback URL =D

    Thanks Slobodan Manic

  8. MSemlali
    Member
    Posted 2 years ago #

    Ah by the way, I also added <?php wp_reset_postdata(); ?> to my single.php file, juste before <?php comments_template(); ?> =)

  9. Slobodan Manic
    Member
    Posted 2 years ago #

    Glad I could help.

    You will probably still be able to use Related Posts if you add that code I posted, right after related posts function is called in your template.

Topic Closed

This topic has been closed to new replies.

About this Topic