Tag Info

Hot answers tagged

4

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 ( ...


2

Disqus comments are loaded in an iFrame, but you can do some modifications. Check out Disqus Appearance Tweaks | DISQUS You need to be able to use Dev Tools. See Firebug with Firefox, or use the developer tools in Chrome or Safari or IE to see what's loading on your site and how to work with and change the CSS and HTML.


2

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 according to this Disqus ...


2

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 than a plain double value with the ...


1

I have written and explained a small plugin to disable comments on pages: How to disable comments for WordPress pages in any theme. It replaces the regular comments_template for pages with a file that returns nothing – and therefore no disqus comments too.


1

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 ...


1

I had to get some band reviews that were already in Disqus from my old site into my new WordPress band site. I only wanted the reviews on our home page so here's what I did... I looked at the code on my old site and grabbed the disqus_identifier value from there. I defined and added a custom field named dsq_identifier to my custom page template and gave it ...


1

Just found the solution: you gotta disable Disqus 2012 features on your website (pre-moderation haven't been implemented on Disqus 2012 yet, despite being almost 2013 already). Here's the article where i found the solution: http://help.disqus.com/customer/portal/articles/708758-how-to-enable-settings-missing-from-disqus-2012


1

Without having a sample xml file, it's impossible to try to debug that plugin and see where it is failing. Tried to search if some innocent soul left a file hanging on the internets, but nope. But one can see what others are saying: The nightmare that is Disqus export, and import into WordPress. September 20, 2011 Disqus should have made this easy by ...


1

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 ...


1

Basically it's just a request using the WP HTTP API using its functions. Something along the lines of: $response = wp_remote_get( $disqusURLwithArgs, array( /* API args */ ) ); // Additional checks like wp_remote_retrieve_resonse_code // or wp_remote_retrieve_response_message // and is_wp_error( $response ) $content = wp_remote_retrieve_body( $response ); ...


1

The comment count in your theme is wrapped in <span class="comments-link">...</span>, so you can set a CSS rule in your CSS file like: .comments-link { //here your rules } For future questions, please, note that questions about pure CSS, not specific to Wordpress, can be more suitable for other sites, may stackoverflow.


1

Hiding the comments until click are two possible solutions: http://www.paulund.co.uk/ajax-disqus-comment-system http://blog.yjl.im/2012/04/let-your-readers-decide-when-to-load.html http://help.disqus.com/customer/portal/articles/472097-universal-embed-code


1

you may use this plugin : http://wordpress.org/extend/plugins/disabler/ i found this function somewhere on the internet (but can't remember where...). it may do what you are looking for : // Remove self pings add_action( 'pre_ping', 'my_no_self_ping' ); function my_no_self_ping( &$links ) { $home = get_option( 'home' ); foreach ( $links as $l ...


1

Most themes used comments_template to include their comment areas. It's completely full of filters, one of which is the include file (usually comments.php) that you can hijack to include a file from your plugin that contains all the stuff for facebook comments (or nothing if you just want to disable comments. Example: <?php add_filter( ...


1

Personal opinion on things to stay away from: Akismet, it has terrible surges of false positives and operates as black box; external comment systems, they are solution in search of a problem. I started with native WP tools alone. Blacklist is great, but takes some maintenance. Since spam grows with time later I ended up building my own anti-spam plugin ...


1

I've personally stayed away from any external or 3rd party system. Many times commenters are apprehensive about using "another" account or service, esp with recent privacy issues with Facebook, etc. Also, many add bloat and delay page load to run their own scripts, etc and can be harder to style to fit within an existing theme. I would look to use the ...


1

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 however just opt-in with disqus. ...


1

Are you registering your CPT with comments in supports array of register_post_type()? From brief look at Disqus plugin code there is dsq_comments_template() function that checks for related stuff and it likely returns false if support for comments is not declared.



Only top voted, non community-wiki answers of a minimum length are eligible