totallyspun
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: [Plugin: DISQUS Comment System] Disqus comment count at 0This is the first article I’ve been able to find that attempts to address the issue I’m having, so thanks for that. Unfortunately, this solution isn’t working for me; perhaps something has changed with a subsequent version of either WP or Disqus.
I’m using WordPress 3.3.1 and the WP Disqus plugin version 2.72. I’m attempting to show the number of comments on another page of the site in a list of articles. I used the JS solution provided by Disqus at docs.disqus.com/developers/universal/ and the link markup of
<a href="<?php echo get_permalink(); ?>#disqus_thread" data-disqus-identifier="<?php echo get_post_meta(get_the_ID(), 'dsq_thread_id', true); ?>"></a>
At first this was working perfectly, it changed the anchor into a span and filled the conetents with the correct # of Disqus comments; however, after a few other unrelated changes and numerous page refreshes it stopped working, leaving the anchor intact and inserting always ‘0 Comments’ regardless of the actual state.
I have tried with manually inserting the JS code in the footer and also the option in the plugin’s advanced settings. I have tried resetting the plugin entirely but uninstalling settings on the same page.
I have also tried the above steps — BTW step 2 is no longer necessary; the replacement code is already default in this version of the plugin’s disqus.php file — but unfortunately all it seems to do is break WP’s comments_number function, displaying only the number of comments from WP — not Disqus — and not using the provided text when using the syntax
comments_number( '0 comments', '1 comment', '% comment' );
I have had no luck finding any support of this issue with the disqus community, and this was the closest article anywhere I could find, so I’m hoping somebody can offer a suggestion.