Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m having the same problem. I checked the option in the advanced options that they tell you to check if you’re having this problem, but it only works on the home/category pages, not on single.php

    In case anyone else is still having this problem, there is a fix here:

    http://samdoidge.com/disqus-number-of-comments-not-showing-up-on-a-single-wordpress-post/

    Around line 275 of the DISQUS plugin in disqus.php (accessible via dashboard – plugins – editor), it has the following:

    } else if ( (is_single() || is_page() || $withcomments || is_feed()) ) {

    change this line to:

    } else if ( (is_page() || $withcomments || is_feed()) ) {

    When I did this, I was then seeing duplicate “X Comments”, one from WordPress and one from Disqus. Taking out the WP Comments counter in the single.php removed the code Disqus was replacing, so I ended up with no comments.

    The solution for me was to add style=”display: none” to the WordPress comments part of the single.php file, so it looks like this:

    <a href="#disqus_thread" style="display: none;"><?php comments_number('0 Comments', '1 Comment', '% Comments', 'number'); ?></a>

    This leaves the text in the source, so the Disqus Javascript can successfully replace it with it’s own comment counter, but hides it from displaying to the user.

    Hi,
    The above solution solved the problem. But I am having another problem which is, in WordPress admin I see there are two pending unapproved comments as a red bullet with 2 but when I click on it, Disqus says there are no new comments…. What could be the problem?? Please help

    They are most likely just a trackback or pingback. You can access the old comments panel by taking the Disqus bit off the query string:

    Change:

    http://www.yoursite.com/wp-admin/edit-comments.php?page=disqus

    to:

    http://www.yoursite.com/wp-admin/edit-comments.php

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Pligin: Disqus] No comment count on permalinks despite ticking the box’ is closed to new replies.