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.
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.
I had the same issue and I went to post on WordPress support, but got help. I got it here thanks
great help thanks!
http://www.studio-navivo.it
hi
I was reading the blog and I must say this is going to help me a lot. All though I am a regular use of the Disqus
http://www.allkarepropertydryingout.co.uk/services/leak-detection.html
<a href=”http://www.allkarepropertydryingout.co.uk/services/leak-detection.html”>Leak Detection</a>
I was reading the blog and I think that this information is going to help me a lot.
<a href=”http://www.allkarepropertydryingout.co.uk/services/leak-detection.html”>Leak Detection</a>
http://www.allkarepropertydryingout.co.uk/services/leak-detection.html
I’ve changed to Livefyre but everytime I try to comment, it wants to authenticate via Twitter even if I’ve already logged in via Livefyre.
@jonharules Livefyre have great support, so I would try contacting them directly.
@jonharules livefyre is freakin’ awsome! 🙂
I have been lately in your blog once or twice now.
thank you this site perfect.
Happy Mothers Day 2012 http://fsquarefashion.com/happy-mothers-day-2012-sms-quotes-wishes-wallpapers/
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?
@marcus555 Sorry, I don’t use Disqus any more and there have been a lot of new versions. Their support staff should be able to help.
@BlogTechGuy Can you tell us who you moved to, if not using Disqus any longer? Is it LiveFyre? Thanks!
@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.
@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.
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?
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>
vERY nICE sITE AND rEVIEWS, pLZ ALSO sEE [ http://www.topgamesoftheyear.com ] Reviews of Top games of The year and PC System Requirements
http://novelascolombianas.net
Bastante interesante, muy buena nota para reflexionar en este sentido.
Saludos.
Novelas Colombianas
Great blog article about this topic, I have been lately in your blog once or twice now. I just wanted to say my thanks for the information provided here.
I think this is one of the most important info for me. And i’m glad reading your article. But should remark on some general things, The website style is wonderful, the articles is really excellent.http://www.mysuperdietary.info/
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
Thanks for sharing such a nice information with us it is quite informative .
Stock Prediction Software
I loved this system to add comments. is a great option for those who wish to manage commentson websites. My site is http://marketmultinivel.com/amway You can add this system on my site? I await contact.
If you go to Plugins > Add new and search for Disqus you can easily install it there.
Amazing and nice looking site please love it and make more effective.. keep it up baby..website development
Yes I am agree with you. I also like disqus plugin for comments. You have provided very good information.
Awesome !!! And amazing view of this site i like to watchy this site i have never seen such type of site please share more link on my face book link.. Thanks..:-)SEO packages
yeah
There are many commenting system whom will you correct
This was a really good article. Thank you for sharing information.DISQUS Blogger allows greater control with a comfortable and comments.powerful
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?
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.
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?
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.
Thanks, helped a lot
I’m a programmer student. This helped a lot! Thank’s bro
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.
I don’t have that problem at all, sorry. It works great on other sites for me.
Its a problem from the web developer using antiquated jsquery I believe, just on one site I frequent..
Thanks for letting me know.
Its a problem from the web developer using antiquated jsquery I believe, just on one site I frequent..
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
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
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
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.
I’d need to check with you here. Which isn’t one thing I usually do! I get pleasure from studying a put up that may make people think. Additionally, thanks for permitting me to comment!
Boise Plumbers
http://www.rotorooterboise.com/list-plumbing-services
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.
דלתות פנים
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
Sorry I have never used that, so I don’t. Have you tried their support ticket system?
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
thanks
Thanks for this great information about disqus and disqus is the best place for blog commenting.
All – I’ve updated this to show how to do it in WordPress 3.1 and the current version of Disqus 2.61.
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?
Hi. I think you can change this in the Disqus settings in your dashboard on the Disqus website. Login there and check your settings.
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.
So you want the word comments after the number? This post has a potential answer in Step Two:
http://www.nathan-miller.com/fix-disqus-for-wordpress-showing-view-comments-instead-of-comment-count/
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
I have done with sorting.
Oh nice, thanks for your information!
Any updates on this as this post seems currently outdated… line 485 is not the same as it was before 🙂
until now this is working for me
http://samdoidge.com/disqus-number-of-comments-not-showing-up-on-a
This blog is rich of informations, many thanks !
What a terrific article
And I’d like to highlight authors comments and add a logo to comment like you do? Could you give a hand there as well?
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.
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?
You need to link the wording to #comments which is the standard WordPress anchor link for the comments section.
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.
Thanks for letting me know, looks like a simple solution.
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!
Great idea, I will update the post with a note now!
This worked perfectly! Thanks so much!!
Good job. Was looking for a solution. Thanks!
<a href=”http://www.balinesehotel.com” rel=”nofollow”>Bali Hotels</a> : Very nice post, i love it
thank 4 share
Thanks, it works
http://www.longcode.org
Thanks, just what I was looking for.
Can you explain me how can i replace the “0” in the counter? I don’t get it, i readed your comments, but i don’t understand it. I’m from poland and it didn’t work on my blog : http://www.hajducek.pl. Can you explain me it from step to step?
Things have changed in the new version of Disqus I’m afraid, this doesn’t work anymore, sorry!
Just noticed mine is broken… is there another way to fix it? 🙁
Oh, things are much much better fixed now.
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.
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.
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
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.
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]’;
Thanks!
Yes, many thanks for the update!
Thanks. This was driving me crazy.
Glad it worked for you!
I thank very detailed descriptions have been
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!
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!
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?
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?
Yes! Thanks so much Joel. I really don’t know how it got solved, but it did 🙂
Great, thanks for letting me know!
Thank you for the tip. It helped me a lot.
And me to, great stuff mates.
Thanks for this!
That’s great!
Very useful quick fix! Got it working in minutes.
Cheers mate
Thanks for this, just edited the code and it works BUT on my archive pages comment number is always 0 now. Any ideas?
Hmmm, I would check the code your archive.php is using to bring back the comments is the same as on your index.php
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.
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.
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.
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…
yes.. your comments can be posted through twitter because it was itegrated.
yeah right, spammer! need you to be removed!
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….
test
Some time buddy you Know CSS error and server error make my Blog Down
Thnx mate, I needed this!
thanks for posting this, was really useful and interesting to me
good
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.
this was a really good article. thanks for sharing the information.DISQUS allows the blogger to have greater control with comments.powerful and convenient
Thanks for letting me know!
I have seen such problem. 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.
We supply electronic products with good quality and low price.Especially our Laptop Battery have a long life.we sell many kinds of branded merchandise.such as apple Laptop Battery /ibm Laptop Battery…… Please contact us to know details.I'm sorry if i bothered you.I hope you can forgive me.
Great, I think it's the order or including the javascript that makes the difference for whatever reason.
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.
Brian – also try this: http://help.disqus.com/entries/102528-wordpress… the section on Comment Count on permalinks – if you go to Disqus in WordPress (under Comments) and then top right click Advanced Options, the option is there. Just fixed the same problem for another client.
Exactly.
That sounds like a plan, I'll try that.
Thank you so much for your time!
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.
Very useful, thank you.
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.
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?
I have a similar issue but in my case the comment thread permalink at the top of the page is not showing the correct comment count. Here is an example post:
http://brian.se/telenor-lurade-mig-stal-mina-pe…
Any ideas of a solution?
Looks perfect. Thanks for sharing. Glad everything is now sorted out.
Glad you got it sorted out!
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. 🙂
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?
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