• So if I have say 15 pages of comments on a post, and someone posts another comment, instead of going to page 15 after the comment is made and the page is refreshed, it takes them back to like page 13 or so.

    Any ideas what the issue might be and how to fix it?

    Using the latest version of WordPress.

Viewing 4 replies - 1 through 4 (of 4 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 potfblog

    (@potfblog)

    Oi, that sounds like a lot of fun! ?? But I know that is the right thing to do. I have tried two different themes (neither are the default though). But I’ll try deactivating things and see what happens.

    Thread Starter potfblog

    (@potfblog)

    Btw, this didn’t work. I think it looks almost like it’s not calculating the number of comments per page correctly.

    So the url should show:

    https://mysite.com/general-discussion/comment-page-39/#comment-15772

    But it actually shows:

    https://mysite.com/general-discussion/comment-page-31/#comment-15772

    Any other ideas out there?

    Thread Starter potfblog

    (@potfblog)

    Well, I got it working, but I don’t like my solution because it’s only temporary (presumably until WP updates next).

    In the comment-template.php in wp_includes folder, I changed the get_comment_link function to always build $link as so:

    $link = get_permalink( $comment->comment_post_ID );

    If anyone has any other solution that would work, please let me know. Doesn’t seem to be plug in related, as disabling them all had no effect.

    Btw, I wonder if it has to do with how the permalink structure is, or that i modified the comments per page setting in the past (within the settings in WordPress, not in some unorthodox way)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘After comment, wordpress goes to wrong page on post’ is closed to new replies.