≡ Menu

How to Link to a Comment with WordPress Comment Permalinks

One of the series I’m writing on my lifestyle design blog is about logical fallacies. I love the mental rigor of analyzing what is said for accuracy, clarity, and truth. And fallacies abound.

When I see a logical fallacy come up in the media or discussion, I like to use it as an example of real fallacious reasoning. And in a political season, this is far too easy. I have a lineup of fallacy posts just waiting to be completed.

Yesterday I set about to complete my post about the ad hominem fallacy. I had written a post about the tragedy of the presidential election — in response to another post that employed the relative privation fallacy. I only had to wait for comment number two for the ad hominem attacks to kick in. So I decided to finish the ad hominem post with this very timely example.

I wanted to link to the ad hominem comment in the political post from the new post, but for the life of me I couldn’t figure out how to go about it. I know there are plugins that add a comment permalink button — which would give me the needed info. But I didn’t want to add a plugin. I know that if you have been to a post with comments and read the comments, your next page load will jump to the last comment you read — assuming your cookies are in place and all that — and the URL will include the last comment number. But I had read past that comment and there were other new comments elsewhere on the site, so I was unsure how to find the correct number for the comment I wanted to link to.

After that, I looked in the comments section in the dashboard and couldn’t see anything. I searched the web for some time. Without inserting php into the site — which I thought was overkill — I couldn’t see an easy way to grab this needed number.

Finally I gave up the quest and, instead, decided just copied the text from the comment and refer to it. Here are the steps: 

  1. Copy everything in the comment from the commenters name, date, and through to the bottom of the comment.
  2. Paste the information into the Visual post editor.
  3. Save as draft.
  4. Switch to the HTML post editor.
  5. Find the comment permalink and copy it.

As an example, what I viewed the pasted material, it looked something like this: 

<ul id=”comments”>
<li id=”comment-245498″><a href=”http://popcred.net/” rel=”external nofollow”>Alison Moore Smith</a> <a title=”permalink to this comment” href=”http://pix2brix.com/happiness-advantage-5-easy-steps-happier-life/#comment-245498” rel=”nofollow”>August 9, 2012 at 5:04 pm</a>
<div id=”comment-body-245498″>

DiNaRa, so glad this was helpful to you. There is so much good info, I ordered his book,<em><a href=”http://www.amazon.com/gp/product/0307591549/ref=as_li_ss_tl?ie=UTF8&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0307591549&amp;linkCode=as2&amp;tag=pix2brix-20″ target=”_blank”>The Happiness Advantage</a></em>. Reading it now. Will report! (It comes in a <a href=”http://www.amazon.com/gp/product/B003F3PMYI/ref=as_li_ss_tl?ie=UTF8&amp;camp=1789&amp;creative=390957&amp;creativeASIN=B003F3PMYI&amp;linkCode=as2&amp;tag=pix2brix-20″ target=”_blank”>Kindle version</a>, too, which is what I ordered.)


If you look right after the words “permalink to this comment,” you will see a URL. This URL (I have highlighted it in blue in this example) is the permalink to your comment.

Unfortunately, this trick doesn’t work in all configurations. I can’t see a pattern for when it does and does not work, but it’s worth a try to see if your installation allows the permalink to come through.

{ 15 comments… add one }
  • Mike July 21, 2013, 1:53 am

    The example on how to link to these comments was indeed helpful. Too bad it doesn’t work on all configurations like you also noted. Can you also make a guide on how to include random links to other comments in existing comments posts? This would greatly help for SEO.
    Read Mike’s inCREDible post…Cedar Point accident: seven injuredMy Profile

  • UW July 21, 2013, 5:26 pm

    As someone who works with WordPress in the Web design industiry on a regular basis this is highly useful information. Will keep this to mind in future. Thanks for sharing.

  • michael July 22, 2013, 5:15 am

    Hi Alison,Wonderful information, your website gives the best and the most interesting information. This is just the kind of information that i had been looking for, i’m already your rss reader now and i would regularly watch out for the new posts, once again hats off to you! Thanks once again
    Read michael’s inCREDible post…Online TrainingMy Profile

  • vikram July 22, 2013, 6:33 am

    Hey thanks for your great tips. But will it work for all the themes available for wordpress?

  • BTM July 22, 2013, 8:01 am

    Thank you very much, it works just fine for me, great job!

  • Mr.White July 23, 2013, 7:03 am

    The content was full of knowledge. I have learn my tips from your blog. I must say you have a vast knowledge and love to read more.

  • Kassia July 24, 2013, 5:04 am

    Waw! That is very interesting I didn’t knew it! It’s a very good way to get permalinks!

  • Anees Baloach July 27, 2013, 9:50 am

    This is the best practice to find the HTML behind the words.
    Read Anees Baloach’s inCREDible post…The Art of Getting Retweets [Infographics]My Profile

  • CamereBlog July 29, 2013, 6:39 am

    Thank you Alison for yr info, this is helpful for us WordPress addicts.

  • shahalam khan July 29, 2013, 11:14 pm

    Awesome post, and u make tutorial very easy to understand, keep posting. regards

  • Joe July 31, 2013, 9:56 pm

    Great read. This insight was very helpful. I agree that it is better to do the work on our (the blogger’s) end, so that the user experience is smooth and easy. Lots of great tools and plugins for this, nowadays.
    Read Joe’s inCREDible post…Why Do People Nitpick?My Profile

  • Jasmine August 8, 2013, 4:43 am

    Hey Alison,
    I really found this info very interesting, will surely try this out. Thanks for sharing and keep updating. 🙂
    Read Jasmine’s inCREDible post…XOLO A500S Features, Launch Date, Price in IndiaMy Profile

  • PNG August 14, 2013, 8:52 pm

    Hey thanks for the great tip. I am good with WP but this was still unknown to me. Thanks i came upon your site.

    Your blog is really good and it does helps some one starting to making online a lot.


  • akeel September 23, 2013, 2:29 am

    Hi, How are you ?
    This is great information,I am very happy to read this great information.
    Thanks for this great and informative Blog..
    Thanks for the sharing.

  • Btag November 11, 2013, 8:02 am

    This is just the kind of information that i had been looking for, i’m already your rss reader now and i would regularly watch out for the new posts, once again hats off to you!

Leave a Comment

CommentLuv badge