Title: Comments count incorrect
Last modified: December 18, 2016

---

# Comments count incorrect

 *  Resolved [spaceedge](https://wordpress.org/support/users/spaceedge/)
 * (@spaceedge)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comments-count-incorrect/)
 * The comments count is incorrect after reactivating jetpack. (No changes were 
   made to site other than a period of 10 days between reactivating.) The comments
   count now is less than it should be?

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/comments-count-incorrect/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/comments-count-incorrect/page/2/?output_format=md)

 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comments-count-incorrect/#post-8569377)
 * Could you let me know where you see that incorrect comment count? Does it appear
   in your stats?
 * Could you also post your site URL here, so I can have a look?
 * If you want it to remain private, you can also contact us via this contact form:
   
   [http://jetpack.com/contact-support/](http://jetpack.com/contact-support/)
 * Thanks!
 *  Thread Starter [spaceedge](https://wordpress.org/support/users/spaceedge/)
 * (@spaceedge)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comments-count-incorrect/#post-8569659)
 * The comments count appear incorrect in stats, the dashboard, and the comments
   page.
 * The site URL: [https://www.spaceedge.com](https://www.spaceedge.com)
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comments-count-incorrect/#post-8570676)
 * That site doesn’t appear to be up right now:
    [http://i.wpne.ws/iVW0](http://i.wpne.ws/iVW0)
 * Could you take a look and let me know when it becomes accessible again?
 * Could you also tell me more about what you see on the Comments page. If the comment
   count is incorrect there, where do you go to check the correct number of comments
   on your site?
 *  Thread Starter [spaceedge](https://wordpress.org/support/users/spaceedge/)
 * (@spaceedge)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comments-count-incorrect/#post-8573264)
 * The site should be accessible now, (am using shared hosting, and cloudflare reverse
   proxy, had issue w/redirection in wp-config.php, hopefully it’s resolved.) [https://www.spaceedge.com](https://www.spaceedge.com)
 * As far as, how I can tell how many comments I have.
    At the very bottom of the
   comments page the number of items is listed there. Which is a lot more than the
   4 that’s shown in stats and elsewhere.
 * Thankyou
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comments-count-incorrect/#post-8573463)
 * I’m afraid there are still some issues on your site; some of the pages aren’t
   available. This one in particular is used by Jetpack to communicate with WordPress.
   com and synchronize information about your site (like comments) with WordPress.
   com:
    [https://www.spaceedge.com/xmlrpc.php](https://www.spaceedge.com/xmlrpc.php)
 * Unfortunately, since the page is not accessible that communication and synchronization
   can’t happen.
 * Could you make sure that page is available, and let me know if that helps?
 *  Thread Starter [spaceedge](https://wordpress.org/support/users/spaceedge/)
 * (@spaceedge)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comments-count-incorrect/#post-8573578)
 * OK I have unblocked access to XML-RPC to allow only Jetpack IP’s. Let me know
   if it’s OK?
 * Now looks like the comments count are back to normal, except in jetpack stats
   it’s still incorrect?
 * Thankyou
    -  This reply was modified 9 years, 5 months ago by [spaceedge](https://wordpress.org/support/users/spaceedge/).
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comments-count-incorrect/#post-8577405)
 * I’m afraid access to XML-RPC is still blocked. The list of IPs you used is probably
   not up to date.
 * In general, I’d recommend against using an IP whitelist to protect your XML-RPC
   file. Whitelists have to be kept up to date, and make things hard every time 
   you want to use a new service or app that relies on XML-RPC.
 * Instead of a whitelist, the most popular hosts out there use tools like [fail2ban](http://www.fail2ban.org/wiki/index.php/Main_Page)
   or [ModSecurity](https://www.modsecurity.org/), for example. On your end, you
   can use plugins like [this one](https://wordpress.org/plugins/disable-xml-rpc-pingback/)
   to disable access to [one of the methods used by hackers](https://blog.sucuri.net/2014/03/more-than-162000-wordpress-sites-used-for-distributed-denial-of-service-attack.html).
   Since you’re using CloudFlare, you’re already protected by CloudFlare’s Web Application
   Firewall. And finally, [Jetpack itself includes a module that will help against Brute Force attacks](https://jetpack.com/2015/10/12/jetpack-protection-from-brute-force-xml-rpc-attacks/).
 * I hope this helps!
 *  Thread Starter [spaceedge](https://wordpress.org/support/users/spaceedge/)
 * (@spaceedge)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comments-count-incorrect/#post-8583302)
 * I removed the IP whitelist. Jetpack’s count for comments is still less?
 * Thankyou
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comments-count-incorrect/#post-8585179)
 * Your Jetpack’s connection is working properly now.
 * Could you let me know the number of comments you see in the comments menu, vs.
   the number you get in Jetpack Stats?
 * Could you also let me know if you use Custom Post Types on your site that may
   include some comments?
 *  Thread Starter [spaceedge](https://wordpress.org/support/users/spaceedge/)
 * (@spaceedge)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comments-count-incorrect/#post-8585773)
 * I don’t believe am using any Custom Post Types.
 * Here’s the comments list: All (28) | Pending (1) | Approved (18) | Spam (9) |
   Trash (0)
 * And Jetpack: All time comments 9 only.
 * Thankyou
    -  This reply was modified 9 years, 5 months ago by [spaceedge](https://wordpress.org/support/users/spaceedge/).
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comments-count-incorrect/#post-8586018)
 * You appear to be using a few different Custom Post Types, and I wonder if the
   plugin that adds the Q&A is also storing data in comments.
 * Do you actually see 18 approved comments on your Comments page?
 *  Thread Starter [spaceedge](https://wordpress.org/support/users/spaceedge/)
 * (@spaceedge)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comments-count-incorrect/#post-8586167)
 * Yes there’s 19 approved comments as of now.
    Is the plugin for the Q&A incompatible
   with the jetpack stats?
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comments-count-incorrect/#post-8586202)
 * I don’t know what plugin that is, but I’d be happy to give it a try. Could you
   let me know what plugin you used, so I can take a closer look and run some tests?
 * Thanks!
 *  Thread Starter [spaceedge](https://wordpress.org/support/users/spaceedge/)
 * (@spaceedge)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comments-count-incorrect/#post-8586225)
 * It’s this Q&A plugin I’m using. [DW Question and Answer](https://wordpress.org/plugins/dw-question-answer/)
 * Thankyou
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comments-count-incorrect/#post-8586504)
 * Thank you! I think I found the issue. As I suspected, the plugin creates a Custom
   Post Type. The contents of that post type are not synchronized back with WordPress.
   com by default, so any comments left on those questions won’t be synchronized
   back to WordPress.com either, and won’t appear in comment stats.
 * To solve that issue, you’d have to explicitly allow that Post Type to be synchronized
   with WordPress.com, by adding the following to your theme’s functions.php file,
   or in a [functionality plugin](https://wordpress.org/plugins/functionality/):
 *     ```
       /**
        * Filter the list of Post Types available in the WordPress.com REST API.
        *
        * @param array $allowed_post_types Array of whitelisted Post Types.
        * @return array $allowed_post_types Array of whitelisted Post Types, including our 'ghactivity_event' Custom Post Type.
        */
       function jeherve_allow_post_type_wpcom( $allowed_post_types ) {
           $allowed_post_types[] = 'dwqa-question';
           return $allowed_post_types;
       }
       add_filter( 'rest_api_allowed_post_types', 'jeherve_allow_post_type_wpcom' );
       ```
   
 * This will have the added benefit of letting you access and edit questions from
   the WordPress.com interface, whether on WordPress.com or in one of the desktop
   apps. You can read more about it here:
    [https://jeremy.hu/manage-custom-post-types-wordpresscom/](https://jeremy.hu/manage-custom-post-types-wordpresscom/)
 * I hope this helps.

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/comments-count-incorrect/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/comments-count-incorrect/page/2/?output_format=md)

The topic ‘Comments count incorrect’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [Comments](https://wordpress.org/support/topic-tag/comments/)

 * 18 replies
 * 2 participants
 * Last reply from: [spaceedge](https://wordpress.org/support/users/spaceedge/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/comments-count-incorrect/page/2/#post-8586834)
 * Status: resolved