• Ok so heres the issue.

    See code below: Code belongs to Comments.php (edited) – Theme file

    [Code moderated as per the Forum Rules. Please use the pastebin]

    In a nut shell this code Create nesting with in the comments.
    what’s the issue?

    If i post a comment on say a blog post called hello, it will show up in another theme under the blog post called good bye. if I log out of admin, in the comments section under hello i will be redirected to goodbye.

    I have strong believe that the issue is with in that code some where because this only happens with comments.

    now this code has to be called in the header file using:

    <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>

    This code is taken from:

    here

    I have followed the basic steps to get the nested comments working, i have not included the CSS or any of the extra functions.

    So I ask you, why is this happening? why is it if you post a comment in hello then its registered as in the post called good bye?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Have you tried:

    – deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-specific problems?

    Thread Starter a-kyle

    (@a-kyle)

    it is a theme specific problem, plugins are not the issue. I have even boiled it down to, as said before, the comments.php as this issue only happens when logging out or posting comments via the comment section

    please next time read the post before posting a solution to understand all the issues

    I did read your post, thanks.

    Thread Starter a-kyle

    (@a-kyle)

    Just making sure, because a lot of people skip the post and give the usual “fixes” and your post sounded like you skipped the post and just get to the usual fixes.

    so what other fixes can you or others give?

    The “usual fixes” are actually an important part of the basic troubleshooting. The only way to confirm that it is your theme that is the issue is to rule out any plugin interference and check that everything works OK with the default theme.

    Thread Starter a-kyle

    (@a-kyle)

    everything does work with the default theme, so i know its not wordpress its self.

    for example if i post a comment on a post called hello in default theme it shows up in good bye.

    so i have a theory the comments.php file i posted above is the cause as its a theme specific file.

    for example if i post a comment on a post called hello in default theme it shows up in good bye.

    If this is happening in the default theme, then the issue is not in your theme. It’s somewhere else.

    Thread Starter a-kyle

    (@a-kyle)

    No No sorry i didnt explain it properly Ok here goes

    I have theme one, which is a theme I modified (its not called theme one but bare with me) and two posts. one called hello and one called good bye.

    in theme one if i post a comment on hello and go to the blogs home page, good bye is seen as having 1 comment and hello is seen as having 0 comments. if I clicked on hello their is one comment and if i click on good bye their is no comments.

    if I am in the blog post hello and signed in as admin and go down to comments and click log out, i am redirected to post called goodbye, and logged out.

    if at any time I change the theme to default theme then the comment post i made in hello is then moved to good bye like it was shown in the theme called theme one.

    is this still a “theme problem?”
    if not do i have to re-install wordpress to fix it?

    if at any time I change the theme to default theme then the comment post i made in hello is then moved to good bye like it was shown in the theme called theme one.

    This suggests that it’s not a theme problem. When you switch from theme one to the default theme, does a hard refresh (CTRL and F5) make any difference? Do you still see the hello comment being listed against the Goodbye post on the Home page?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Serious Comment issue’ is closed to new replies.