WordPress 3.1 and Disqus throws Warning: number_format() error in Posts List

After quite a bit digging, I managed to fix it without modifying any WP core files. Essentially, Disqus usurps the comment count from WordPress and wraps it in its own with unique identifiers. Since WP is calling its own comment count when viewing the Posts lists, it’s getting a string value filled with HTML rather … Read more

Disqus over the default commenting engine, what are some pros and cons?

You asked specifically about disqus, and as this is somewhat subjective even for technical answers (only because some answers are of technical nature, it does not mean they are not subjective), it’s probably worth to look a bit around what others have asked and answered: What is the best method for handling comments? You can … Read more

Using Disqus, how to stop storing comments in wp database?

The disqus plugin synchronizes your WordPress comments with the disqus system — that’s it’s main purpose (own your own comments, etc). You can get around this by ditching the built in WordPress commenting system altogether, modifying your theme templates (probably just comments.php) to use the stand-alone disqus javascript. <script type=”text/javascript”> var disqus_shortname=””; // required: replace … Read more

How to show Disqus comment count number only without text?

Not sure how it’ll behave with Disqus, but try the following filter: add_filter( ‘comments_number’, ‘comments_text_wpse_87886’, 10, 2 ); function comments_text_wpse_87886 ( $output, $number ) { return $number; } The original return is $output, and instead we are returning only the number of comments. That filter happens in the following core function, reproduced here if you … Read more

How to add Disqus comment count

I have the same problem with displaying number of comments in the loop. I solve this by turn off two filters in file plugins/disqus/disqus.php at line 1124: <?php #add_filter(‘comments_number’, ‘dsq_comments_text’); #add_filter(‘get_comments_number’, ‘dsq_comments_number’); And I have added to my template span with disqus elements: <?php if ( function_exists( ‘dsq_identifier_for_post’ ) ) { global $post; echo ‘<span … Read more

Migrating WordPress users into Disqus

Update If you’re running a big site, you may be able to take advantage of the Disqus Single Sign-On System! Original Post No but… WordPress comments can be imported into Disqus using WordPress’ WXR export format! Disqus has a doc on WXR importing. The WXR format includes the users’ email addresses, which is fantastic because … Read more