No. of comments not matching up with Disqus

Added disqus commenting system to my blog: <snip>

However, the no. of comments at top always shows “With 0 Comments” although I have added a few test comments (shows same 0 comments on blog page <snip>Blog | between third man’s fine legs). And at bottom, it shows perfect no. of comments.

Now, to solve this, I’m thinking of 2 ways:

  1. Either match up the no. of comments
  2. Remove “With 0 Comments” from showing up

I had sent support mail to disqus: <snip>
And I received their reply as:
These messages mean that the plugin can’t reach disqus.com through your server host. This would mean that the connection is being blocked by your host, unless our service was down (which isn’t the case). Try contacting your host and seeing if they can connect to disqus.com or disqus.net using Port 80. Once that’s resolved you should be able to use the plugin functions.

Which might be true as I’m using free byethost account.

So, if this is not possible, can anyone let me know how do I remove “With 0 Comments” from post page & blog pages.

Thanks for your time :slight_smile:

UPDATE: I tried switching to default Twenty Ten 1.2 theme & there the no. of comments was matching up. So, I think I need to edit some of my theme files to get it working. But how & what?

ps. I’m layman when it comes to coding

Sorry, couldn’t find the edit button, hence posting again with no tiny urls :slight_smile:

Added disqus commenting system to my blog: http://betweenthirdmansfinelegs.co.cc/articles/things-that-can-help-india-win-the-trent-bridge-test/

However, the no. of comments at top always shows “With 0 Comments” although I have added a few test comments (shows same 0 comments on blog page as well http://betweenthirdmansfinelegs.co.cc/blog/). And at bottom, it shows perfect no. of comments.

Now, to solve this, I’m thinking of 2 ways:

  1. Either match up the no. of comments
  2. Remove “With 0 Comments” from showing up

I had sent support mail to disqus: http://pastebin.com/6TvC5Lv1

And I received their reply as:
These messages mean that the plugin can’t reach disqus.com through your server host. This would mean that the connection is being blocked by your host, unless our service was down (which isn’t the case). Try contacting your host and seeing if they can connect to disqus.com or disqus.net using Port 80. Once that’s resolved you should be able to use the plugin functions.

Which might be true as I’m using free byethost account.

So, if this is not possible, can anyone let me know how do I remove “With 0 Comments” from post page & blog pages.

Thanks for your time :slight_smile:

UPDATE: I tried switching to default Twenty Ten 1.2 theme & there the no. of comments was matching up. So, I think I need to edit some of my theme files to get it working. But how & what?

ps. I’m layman when it comes to coding

My theme’s comments.php: http://pastebin.com/2qy9JhJn OR:



<?php
/**
 * The template for displaying Comments.
 *
 * The area of the page that contains both current comments
 * and the comment form.  The actual display of comments is
 * handled by a callback to max_comment which is
 * located in the functions.php file.
 *
 * @package WordPress
 * @subpackage Invictus
 * @since Invictus 1.0
 */
?>

			<div id="comments">
<?php if ( post_password_required() ) : ?>
				<p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'invictus'); ?></p>
			</div><!-- #comments -->
<?php
		/* Stop the rest of comments.php from being processed,
		 * but don't kill the script entirely -- we still have
		 * to fully load the template.
		 */
		return;
	endif;
?>

<?php
	// You can start editing here -- including this comment!
?>

<?php if ( have_comments() ) : ?>
			<h3 id="comments-title"><?php
			printf( _n( '%1$s Comment. Leave your Comment right now:', '%1$s Comments. Leave your Comment right now:', get_comments_number() ),
			number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' );
			?></h3>

<?php if ( get_comment_pages_count() > 1 && get_option_max('page_comments' ) ) : // Are there comments to navigate through? ?>
			<div class="navigation">
				<div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">&larr;</span> Older Comments', 'invictus' ) ); ?></div>
				<div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">&rarr;</span>', 'invictus' ) ); ?></div>
			</div> <!-- .navigation -->
<?php endif; // check for comment navigation ?>

			<ol class="commentlist">
				<?php
					/* Loop through and list the comments. Tell wp_list_comments()
					 * to use max_comment() to format the comments.
					 * If you want to overload this in a child theme then you can
					 * define max_comment() and that will be used instead.
					 * See max_comment() in doitmax_fw/max_comments.php for more.
					 */
					wp_list_comments( array( 'callback' => 'max_comment' ) );
				?>
			</ol>

<?php if ( get_comment_pages_count() > 1 && get_option_max('page_comments' ) ) : // Are there comments to navigate through? ?>
			<div class="navigation">
				<div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">&larr;</span> Older Comments', 'invictus' ) ); ?></div>
				<div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">&rarr;</span>', 'invictus' ) ); ?></div>
			</div><!-- .navigation -->
<?php endif; // check for comment navigation ?>

<?php else : // or, if we don't have comments:

	/* If there are no comments and comments are closed,
	 * let's leave a little note, shall we?
	 */
	if ( ! comments_open() ) :
?>
	<p class="nocomments"><?php _e( 'Comments are closed.','invictus'); ?></p>
<?php endif; // end ! comments_open() ?>

<?php endif; // end have_comments() ?>

<?php comment_form(array('title_reply'=>'Leave a Reply')); ?>

</div><!-- #comments -->