WordPress.org

Forums

All comments go to one post (6 posts)

  1. angad619
    Member
    Posted 7 years ago #

    I use wordpress 2.3.1 at http://www.angadsodhi.com

    Try commenting on any of the posts but the comment goes only to this post: http://www.angadsodhi.com/wordpress/blog-to-have-a-focussed-approach/

    What could the matter be?
    I recently installed Brian's Threaded comments plugin but I had once had this problem even before having installed that plugin.

    Please help me out!

    Thank you.
    Angad Sodhi.
    http://www.angadsodhi.com

  2. Kafkaesqui

    Posted 7 years ago #

    When I check the source of that post, I see this in the comments form:

    <input type="hidden" name="comment_post_ID" value="39" />

    Then checking on another post, I again see:

    <input type="hidden" name="comment_post_ID" value="39" />

    I assume the value has been (mistakenly) hardcoded. Change it to:

    value="<?php the_ID(); ?>"

  3. angad619
    Member
    Posted 7 years ago #

    I checked it and I found this line:

    <input type="hidden" name="comment_post_ID" value="<?php echo $post->ID; ?>" />

    The ID of the post where all comments are going is actually 39!!

  4. Kafkaesqui

    Posted 7 years ago #

    Then the task is to look at how your Recent Posts / Recent Topics are being generated. Considering Post #39 is presently the last one on both of these, one (or perhaps even both) are somehow overriding the $post object.

  5. angad619
    Member
    Posted 7 years ago #

    Does a theme file decide it or is it decided out of the theme files?

    In other words, will changing the theme solve the problem??

  6. Kafkaesqui

    Posted 7 years ago #

    I can't answer those questions directly, as I've no idea what is generating Recent Posts / Recent Topics. If these are components of the theme, then yes. If not (say they are plugins), it would depend on how they are incorporated in the pages.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags