Disqus Comment Count : To show the Disqus comment count in your WordPress blog,you need to modify some functions.When the user comment on your post,automatically count the number and displays.Using Disqus WordPress universal code,you can easily add the user's comment count.
Show Disqus comment Count in WordPress
Our intention here is to display the comment count for each post in WordPress.Make sure you should backup a copy of your theme files before editing files.Add the following code to your WordPress theme's footer.php . Make sure that this code should be added before closing </body> tag.Finally don't forget to change your Disqus short name at the place of myg.
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'myg'; // required: replace example with your blog short name
/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
It's isn't over yet.you need to add a bit of extra code to show comment count for posts with discus_thread.Open your single.php file and find the following code.
<a href="<?php comments_link(); ?>"><?php comments_number();?></a>
Replace the above code with the following code and save it. This is the best way to display Disqus comment count manually without using a plugin.
<a href="<?php the_permalink(); ?>#disqus_thread">Comments</a>