Fixing View Comments in Disqus Plugin

I’ve made no secret of the fact I love the Disqus commenting system plugin. However each time I upgrade it I have to go through the same rigmarole of changing the plugin due to one specific problem. So this will explain how I fix the View Comments problem in the Disqus plugin for WordPress.

Update #1: This is fixed to show how to do it in WordPress 3.1 and the current version of Disqus 2.61

Update #2: Please see the comment below from Rutgur for the latest fix

The Problem

On my Blog page the comment count works fine, as you can see in this picture:

The 44 text is displaying perfectly on the Blog, category and archive pages. However on the single post page by default instead of the comment count it says View Comments and is cut off, as you can see below.

So to fix this (or at least change it to the way I prefer, as some people may prefer it saying View Comments), inside the wp-content/plugins/disqus-comment-system folder you need to edit the disqus.php file. For those not comfortable doing this, make a backup or you can always re-install a new copy of the plugin if things go wrong. On line 697 you will see this section of code:

function dsq_comments_text($comment_text) {
global $post;
 
if ( dsq_can_replace() ) {
return 'View Comments';
} else {
return $comment_text;
}
}

It’s the View Comments wording here that is displaying. Luckily we can easily change this to show the correct number of comments:

function dsq_comments_text($comment_text) {
global $post;
$number_of_comments = get_comments_number();
return $number_of_comments;
}

So once done, my single post page now looks correct, displaying the number of comments:

There, looks lovely again. This isn’t really a bug as it’s designed to say View Comments there, however in the default WordPress comment system this would show the number of comments here, so we are simply re-creating that functionality.

292 thoughts on “Fixing View Comments in Disqus Plugin”

  1. This didn’t work for me. My disqus.php file does’t have the text “View Comments.” 
     
    I have the single post issue where there’s the comment bubble and underneath it is the word “Comments,” which overlaps too far to the right (into the sidebar). How do I correct that?

    1.  @BlogTechGuy Can you tell us who you moved to, if not using Disqus any longer? Is it LiveFyre?  Thanks!

    2.  @sharonoday Yes it’s LiveFyre. It’s pretty good, has some useful features and a new version is coming out this month which has a lot more features.

    3.  @BlogTechGuy Thanks, BTG.  I like Disqus, but periodically have glitches such as people not being able to comment on a post, regardless of browser.  I’ll check out LF.

  2. I think this is among the most vital info for me. And i am glad reading your article. But want to remark on few general things, The website style is perfect, the articles is really excellent. : D. Good job, cheers
    By the way: why do you choose livefyre for commenting?

  3. Disqus Provides a platform for blog commenting. I like disqus Blog commenting plugin because of its features.
    <a href=”http://www.webdesignbizz.com/”>Template Design</a>
     

  4. That is a great level to bring up. I supply the ideas above as common inspiration however clearly there are questions just like the one you carry up where an important factor will likely be working in trustworthy good faith.

    web Design london

  5. This was a really good article. Thank you for sharing information.DISQUS Blogger allows greater control with a comfortable and comments.powerful

  6. This is a great tutorial but if I may add respectfully the original code is on line 732 in Disqus 2.66  Also, how do you add text after the number count that appears on the frontend of your site?  Can you add text after the number of comments?

    1. There are a couple of updates at the start of the post, but thanks for letting me know the change!
      Text can be added yes, there is also an option in the Disqus dashboard for the text too.

    2. I looked in the Disqus dashboard and it’s already specified unless i’m looking at the wrong thing.  Is there another way to add text after the number?

    3. No, it should take the comment text set in your Disqus dashboard set for 0 comments, 1 comment and multiple comments. I had it set to show nothing in the example as I didn’t want any text to show.

  7. What happens when the site you frequent, disqus comment box stopped appearing.

    I have to use web developer, and show hidden elements to see it.

    I cant sem to make it appear anymore, and disqus acts like it doesnt happen.

    They wont even talk to me about it.

    They just didnt care.

    1. Its a problem from the web developer using antiquated jsquery I believe, just on one site I frequent..

    2. Its a problem from the web developer using antiquated jsquery I believe, just on one site I frequent..

  8. After research just a few of the blog posts in your web site now, and I actually like your manner of blogging. I bookmarked it to my bookmark website checklist and will likely be checking back soon. Pls try my site as effectively and let me know what you think.
    Your home is valueble for me. Thanks!…
    This web site can be a walk-by means of for all the data you needed about this and didn’t know who to ask. Glimpse here, and you’ll positively uncover it.
    There may be noticeably a bundle to find out about this. I assume you made certain nice factors in features also.

    Office Space Boise 

     http://tokcommercial.com

  9. There are actually plenty of details like that to take into consideration. That is a great level to bring up. I supply the ideas above as common inspiration however clearly there are questions just like the one you carry up where an important factor will likely be working in trustworthy good faith. I don?t know if finest practices have emerged around things like that, but I’m certain that your job is clearly identified as a good game. Both boys and girls really feel the affect of only a moment’s pleasure, for the remainder of their lives.
    A formidable share, I just given this onto a colleague who was doing a bit evaluation on this. And he in actual fact purchased me breakfast because I discovered it for him.. smile. So let me reword that: Thnx for the treat! However yeah Thnkx for spending the time to discuss this, I feel strongly about it and love reading extra on this topic. If doable, as you become expertise, would you mind updating your weblog with extra details? It is extremely useful for me. Big thumb up for this blog submit!

    Dongles 

     http://www.smartdongle.com/what-dongle

  10. Oh my goodness! an incredible article dude. Thank you Nonetheless I’m experiencing situation with ur rss . Don’t know why Unable to subscribe to it. Is there anyone getting identical rss problem? Anyone who is aware of kindly respond. Thnkx
    WONDERFUL Post.thanks for share..extra wait .. …

    Wickless Candles

    http://www.newflamelesscandles.com

  11. Aw, this was a really nice post. In concept I wish to put in writing like this additionally – taking time and precise effort to make a very good article… but what can I say… I procrastinate alot and certainly not seem to get one thing done.
    I’m impressed, I need to say. Actually rarely do I encounter a weblog that’s each educative and entertaining, and let me tell you, you have got hit the nail on the head. Your thought is excellent; the problem is something that not sufficient individuals are speaking intelligently about. I’m very happy that I stumbled throughout this in my seek for something regarding this.

    Denver Plumbing Services

     http://www.rnrenterprisesinc.com/industrial-services.

  12. Thanks  for another wonderful article. Where else could anyone get that kind of info in such a perfect way of writing? I’ve a presentation next week, and I am on the look for such info.
    דלתות פנים

  13. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  14. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  15. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  16. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  17. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  18. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  19. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  20. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  21. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  22. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  23. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  24. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  25. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  26. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  27. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  28. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  29. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  30. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  31. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  32. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  33. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  34. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  35. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  36. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  37. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  38. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  39. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  40. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  41. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  42. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  43. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  44. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  45. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  46. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  47. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  48. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  49. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  50. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  51. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  52. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  53. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  54. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  55. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  56. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  57. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  58. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  59. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  60. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  61. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  62. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  63. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  64. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  65. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  66. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  67. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  68. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  69. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  70. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  71. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  72. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  73. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  74. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  75. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  76. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  77. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  78. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  79. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  80. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  81. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  82. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  83. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  84. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  85. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  86. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  87. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  88. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  89. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  90. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  91. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  92. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  93. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  94. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  95. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  96. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  97. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  98. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  99. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  100. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  101. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  102. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  103. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  104. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  105. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  106. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  107. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  108. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  109. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  110. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  111. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  112. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  113. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  114. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  115. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  116. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  117. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  118. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  119. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  120. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  121. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  122. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  123. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  124. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  125. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  126. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  127. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  128. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  129. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  130. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  131. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  132. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  133. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  134. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  135. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  136. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  137. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  138. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  139. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  140. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  141. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  142. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  143. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  144. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  145. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  146. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  147. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  148. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  149. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  150. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  151. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  152. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  153. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  154. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  155. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  156. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  157. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  158. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  159. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  160. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  161. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  162. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  163. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  164. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

  165. Do you have any idea on how to get a recent comments widget to link to the correct comment,
    the comment numbers on the anchors are different
    Thanks

    1.  Hello Joel, I would like to thank you for providing this helpful post, it worked for me. The only thing is, what code should I substitute if I want to show the text too? Right now, it only says ‘1’ where I would like it to say ‘1 Comment’ or ‘2 Comments.’ Any ideas?

    2. Hmm, I see where you’re coming from, but I didn’t change any of the default settings. Using your method, my posts only showed the number, I’m interested in showing both the number and text. I thought it had something to do with the calls you used, but I wasn’t sure. Really, I’m just trying to get it to work on my WordPress theme because originally all it said was View Comments where the indicator (on the homepage) went. 

  166. It is check feature to put the JavaScript in footer. There is brief delay and disqus would kick in and insert the number itself. It was the page scroll down to comments when use of click to view comment.

    hp coupons code

    1. This is simply some styling, so in your Disqus Account go to Settings > Appearance and at the bottom under Custom CSS I have added:

      .dsq-moderator {
      background: #E2E2E2 url(LOGO URL HERE) no-repeat top right !important;
      }

      Which makes the background grey and adds my logo top right.

  167. I also had the same issue and I soted it out with the help of this article. But I have another problem that, I wan the page scroll down to comments when use click in ‘View comment’ or ‘Number of comments’ link.

    How can I get this done?

  168. I disabled this by changing:

    return ‘[span class=”dsq-postid” rel=”‘.htmlspecialchars(dsq_identifier_for_post($post)).'”]’.$count.'[/span]’;

    FOR:

    return $count;

    AND:

    return ‘[span class=”dsq-postid” rel=”‘.htmlspecialchars(dsq_identifier_for_post($post)).'”]View Comments[/span]’;

    FOR:

    return $comment_text;

    – Works like a charm

    ps: i changed for [], otherwise the code wouldn’t show up right.

    1. This is the perfect solution!  It changes “View Comments” into the exact same counter you have on your homepage (In my case, that’s “# Comments and # Reactions”)  You’re a genius sir!
      Joel, do you think you could update your blog post to include this alternative solution as well? By highlighting it in your popular blog post (it was the first thing I found when googling) you could really help a ton of people.  Thanks Joel, and thanks for writing this blog post in the first place to help us all!

  169. I’ve been using this fix for a while, but with the latest version of the plugin, it shows “0 comments” all the time now instead of the actual count.

    They redid some of the coding around those lines in the plugin… but I can’t figure out how to fix this. ’.$comment_text.‘ replacing View Comments gives a 0 comment count every time.

    I was able to check the feature to put the javascript in my footer, so the real count shows up, but it’s confusing visitors when they see “0 comments” then it changes to some number.

    1. So it now does show the comment number when the page has fully loaded? If so with the javascript loading in the footer it will always load last before it takes over the default WordPress comment wording. I do this on my own site but it loads quickly for me so I don’t really notice this issue.

    2. When the page is fully loaded, the comment number shows up, but I need to
      have the javascript in the footer (because of my theme or whatever the
      comment count doesn’t load when it’s in the header).

      There is a brief delay and it’s not a huge deal, but before it would show
      the comment count before disqus would kick in and insert the number itself.

      Have you updated the plugin recently? I don’t understand why it’s showing
      “0 comments” when comment_text is used now. If there was a way to just
      disable disqus from replacing the text that would be even better to be
      honest. I already use the comments_number function and that’s what gets
      replaced… I would rather disqus not replace it at all. I’ll look into
      that I guess…

      -Adam

    3. I disabled this by changing:

      “return ‘[span class=”dsq-postid” rel=”‘.htmlspecialchars(dsq_identifier_for_post($post)).'”]’.$count.'[/span]’;

      FOR:

      return $count;

      AND:

      return ‘[span class=”dsq-postid” rel=”‘.htmlspecialchars(dsq_identifier_for_post($post)).'”]View Comments[/span]’;

      FOR:

      return $comment_text;

      – Works like a charm
      ps: i changed for [], otherwise the code wouldn’t show up right.

    4. If you updated the plugin, try this:

      Change:

      return ‘[span class=”dsq-postid” rel=”‘.htmlspecialchars(dsq_identifier_for_post($post)).'”]View Comments[/span]’;

      To:

      return ‘[span class=”dsq-postid” rel=”‘.htmlspecialchars(dsq_identifier_for_post($post)).'”]’.$post->comment_count.'[/span]’;

  170. Hi Joel, thanks for the tip- I tried to do it but I get the following message:

    Parse error: syntax error, unexpected ‘/’ in /home/nace/public_html/wp-content/plugins/disqus-comment-system/disqus.php on line 55

    All I did was change the bit of text you mention, I didn’t modify anything else. Any idea of what I could be doing wrong?

    Thanks for your help!

    1. It sounds like you either misplaced some of the code, restore from your backup and then try again (but remember to keep an original backup). Else they do update their plugin quite often so the code may have changed but it shouldn’t give that error. Also try typing it in rather than copying and pasting as I don’t know what software you’re using to edit but some of the special character (single quotes etc) may not be transferring correctly. Sorry about that!

    2. Thanks for your fast reply. I’m still getting the error message. I’m using Notepad++. The thing is that I get the message even after restoring the backup, which is quite strange. I’ve just uninstalled the plugin and installed it again without problems, but I still can’t get rid of the ‘View comments’ text -and by the way, the link doesn’t work either 🙁

      Might the problem be my theme?

    3. That should be fine in Notepad++. It’s possible your theme might be using some other way to pull in the comment count, but it looks like a StudiPress theme so I doubt that is causing any problem.
      If the error was there after restoring from the backup it suggests something else. So I would make a copy of the disqus.php and then try again with the changes, checking you don’t change anything else. Then see if that works, if not you have the backup.
      I see on your site that the View Comments changes to the number of comments and the link goes down to your comments fine now?

  171. you can see the number of comments shifted dramatically to the right of the comment bubble.This only happens with certain WordPress themes which are written differently than they’re supposed to. To fix this, you will have to go into your theme’s code and remove the code which shows the comment count at the bottom of the post.

  172. It surprised me immensely to see the words hardcoded in there! It would be easy to replace with a variable and not break custom formatting of count counts, I agree. Thanks Artem.

  173. OK, I think I get what they’re trying to do (which is mark a certain area of the html as replaceable by JS with the proper comment count later). However, the fact that the “View Comments” text link is not configurable is just shocking, at this level of supposed maturity of DISQUS.

    I’ll try pinging them about this thread, as what the plugin does is ridiculous.

  174. I don’t understand what the heck the point of this code in the plugin was at all.

    If you look at the plugin code, it sets disqus_replace=all if it finds a valid DISQUS API key (which is part of setting up the plugin).

    Then, later on it checks if disqus_replace==all and if so, always returns “View Comments” and breaks formatting of things like small comment count boxes like I have on http://www.androidpolice.com

    What the heck is going on…

  175. This only happens with certain WordPress themes which are written differently than they're supposed to. To fix this, you will have to go into your theme's code and remove the code which shows the comment count at the bottom of the post….

  176. Hi every friends,

    Welcome to Flash Games, the online games resource website. Free arcade games Play on 4000 games,Nice Video and counting . The best of online games is on http://www.ongamesite.com.We have fun playing some of the best online games ever created and remember to check back often because we are always adding new games.

    Good luck.

  177. Thank you so much! As it seems, this actually solved the problem. I thought this feature only was for dealing with the Disqus comment count – which was working fine – and not the WP/Thesis comment count.

  178. Strange, as I've used it in Thesis a lot and it has always been fine for me. Also the answer doesn't make much sense because at the top is the correct text but incorrect count and at the bottom is the correct count.
    You could try removing that info from the byline and then using the Thesis Openhook plugin adding in <?php comments_number('0 KOMMENTARER', '1 KOMMENTARER', '% KOMMENTARER'); ?> somewhere and seeing if that displays the correct count. If so you can then position and style it the way you like.

  179. Thanks for your quick reply Joel.
    Yes they're correct, I just translated the “comments” into Swedish, {num} is still there.

    I contacted Disqus and they told me the following (which I don't really get):
    On your page, at the top of all the posts it says “(x) KOMMENTARER AND (x) REAKTIONER” – which is the correct text. But at the bottom it will say “1 KOMMENTARER” which is the incorrect count. This only happens with certain WordPress themes which are written differently than they're supposed to. To fix this, you will have to go into your theme's code and remove the code which shows the comment count at the bottom of the post.

  180. I haven't seen that problem before Brian. I have changed some settings in Disqus too but I know it works fine in Thesis as I do use it for quite a few of my clients.
    If you go into your Disqus settings, click Customize on the left and then the Appearance tab, under Comment Count link you should have a {num} (or {num} comments) in for Multiple Comments. Are those boxes set up correctly?

  181. Thanks for the reply Joel. I was able to narrow it down with the help of a friend and added some CSS that fixed it. Thanks for looking. I would have replied back but I was working on another display problem. 🙂

  182. Interesting Rich, I had a look in Chrome and IE8 and it looks like it's displaying fine for me. The number of comments is just to the right of the bubble, or it says View Comments on the single post page. That's how it's supposed to be isn't it, just next to the bubble like the date is next to the clock and the author name next to the other icon?
    Is it a different browser you can see the problem on?

  183. Hi Joel,

    I was wondering if you have ever seen a problem like I'm having on http://www.newwaveclassics.fm? If you look at the main page and the individual posts, you can see the number of comments shifted dramatically to the right of the comment bubble. I found your blog by searching on span.dsq-postid because that appears to hold the key to my display problem.

    If I turn off Disqus it displays perfectly. There is something about the Disqus plugin that is adding additional padding and I have not been able to find the answer.

    Any ideas?

    Thanks,

    Rich

Leave a Reply to PrototekManufacturing Cancel reply