• Hi

    Our Disqus-plugin (latest version 3.0.17), is setting all our articles to commentcount 0, for some reason.

    Normally it works just fine – but currenly it’s somehow broken. (No changes has been made from our site).

    Example of code:
    <span class="entry-meta"><span class="entry-comments disqus-comment-count" data-disqus-url="https://URLGOESHERE.dk/2019/10/ARTICLE_TITLE/">23</span><abbr class="published" title="2019-10-03T10:00:30+02:00">3. okt. 2019</abbr><div></div></span>

    After comment_count.js is loaded, it changes the value to 0, instead of 23 (from our WordPress calculations, cause we have a local backup).

    What’s going on? All URL’s looks correct.

    We would like to have the count to be defined/updated by Disqus (as it have in the part), but NOT to invalid data (o:

    I’ve fixed it temporary by removing data-disqus-url="' . get_permalink() . '", but that not ideal, for sure!

    • This topic was modified 5 years, 1 month ago by exetico.
    • This topic was modified 5 years, 1 month ago by exetico.
    • This topic was modified 5 years, 1 month ago by exetico.
    • This topic was modified 5 years, 1 month ago by exetico.
Viewing 4 replies - 1 through 4 (of 4 total)
  • I also have this issue, and I’m seeing other websites which have the same issue. There are posts with comments, but on the front page it displays as though they have 0 comments.

    I’m having the exact same issue!

    Seems similar to this:
    https://wordpress.stackexchange.com/questions/119778/disqus-resetting-comment-count-to-0

    Interestingly, if I refresh the page it briefly shows the correct comment count, then is reset to zero comments for all of them on the main page. Also interestingly, if I click “view page source” in Firefox, the source of the page shows the correct number of comments for each entry.

    I am open to suggestions of how to fix the issue. Thank you.

    Same issue here! really annoying. I’ve spent hours trying to figure out what has broken but maybe it’s to do with Disqus?

    Thread Starter exetico

    (@exetico)

    @hudsontek – Yes, as mentioned, comment_count.js sets all the Comment-counts to 0, after the script is initiated. If i block out comment_count.js in my AdBlocker, the correct count is not touched (and shown as it should).

    Let’s hope that the Disqus team will look at it.

    As mentioned on the first post, i’ve removed the data-disqus-url="'-reference, as a hotfix.

    Update
    I just found this post at the Disqus Community:
    https://disqus.com/home/discussion/channel-discussdisqus/bug_reports_feedback_zero_comment_counts/

    • This reply was modified 5 years, 1 month ago by exetico.
    • This reply was modified 5 years, 1 month ago by exetico.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘comment_count.js sets comments to 0’ is closed to new replies.