Viewing 15 replies - 1 through 15 (of 15 total)
  • Moderator James Huff

    (@macmanx)

    They appear to be working correctly.

    https://abdulrehman.co.uk/?p=19#comments takes me directly to the comment form under “Smoking Kills”.

    https://abdulrehman.co.uk/?p=18#comments takes me directly to the two comments under “Hitting the Block”.

    MacManX: I think he means the permalinks to the comments, not the comments page.

    Thread Starter 350z

    (@350z)

    Yes, ch0de is right. Sorry for not making it clear earlier.

    Anyone know how to fix this?

    Thread Starter 350z

    (@350z)

    I’ve just realised, if you go to the Welcome post, the first comment there is showing it’s the third comment made, hence when I click to get a perm. link to it, it goes to the third comment instead. It looks like the comment numbers are messed up. 1,2, and 3 are missing and as a result, the rest are messed up too.

    Any help anyone? Please? I’d really appreciate it.

    Moderator James Huff

    (@macmanx)

    Those are the comment ID #s, they won’t match that with which comment it is for the post.

    Thread Starter 350z

    (@350z)

    I think it does. If you see, for some reason it thinks that the first comment is the third, and if you scroll over the link for the second comment, it says it’s the fourth. It looks like the comment database or something is messed up.

    How do I set it to normal again? Like the first comment is the first comment, and not the third. I do remember deleting two comments prior to those three on the first post.

    I don’t think you followed what I meant. “If you scroll over the link for the second comment, it says it’s the fourth.” That means it is comment #4 in the database. You will never see comment #4 again, even if another post has 4 comments, because each comment has a unique ID. The last comment on my site was the only comment on the post, so with your thinking it would be comment #1. It is #3311. So while there does seem to be something wrong with the comment permalinks, I don’t think it has much to do with the comment ID.

    Yes it does. The <li id= part is what the browser is going to. They need to change it from being the number for that post to the actual comment’s ID.

    <li id="comment-1" class="comment">
    <p class="header"><strong>1.</strong>

    <a href='https://www.freewebs.com/unite_ummah786' rel='external nofollow'>Yousaf</a> &nbsp;|&nbsp; August 2nd, 2005 at <a href="#comment-6">4:41 pm</a>

    ^ #comment-1 will go to that part of the page even though that’s the 6th comment overall on the blog.

    And while we’re at it, while it works how it is not ’cause the browser automatically puts the current URL in front of #comment-6, the full permalink URL should go there.

    The ID in the permalink is correct. The ID in the li is not. The problem isn’t that the permalink says comment-6. The li needs to show comment-6 also.

    That’s what I said, isn’t it? If not, that’s what I meant.

    But none of that helps him get it fixed…

    Here is the code that I show in the Comments Template, for where it is getting that:

    <li class=”<?php echo $oddcomment; ?>” id=”comment-<?php comment_ID() ?>”>

    Sorry if we had a misunderstanding. ?? I thought you were saying the opposite.

    Thread Starter 350z

    (@350z)

    Nope, still not working right. If I was to re-install wordpress and start again, would that help? Seen as though the blog is a only a few days/posts old it wouldn’t matter much.

    Or if anyone has a better solution, please let me know. Thanks.

    It’s a template issue. Has nothing to do with your blog. You need to edit the functions it’s using.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Perm. Comments Links Not Working’ is closed to new replies.