12

How To Diagnose And Fix Incorrect Post Comment Counts In WordPress


Posted by Artem Russakovskii on March 21st, 2010 in Wordpress
Share

12 Responses to “How To Diagnose And Fix Incorrect Post Comment Counts In WordPress”

    11 Comments:
  1. ekule44 says:

    I've been looking high and low for this advice. Thanks so much for taking the time to share your this WP comment solution.

  2. R'phael Spindel says:

    This is going needed more with more plug-ins and themes using comments and now comment_meta and custom comment_types to extend WordPress as CMS functionality. Thanks for the tip.

  3. Erline says:

    I'm using DisQus too for my comment system. This post is definitely could help me a lot. Thanks

  4. greywulf says:

    This worked perfectly! Many, many thanks for this.

  5. :( says:

    #1142 – SELECT command denied to user 'joxpa'@'localhost' for table 'wp_posts'
    UPDATE joxpawp2.wp_posts wpp LEFT JOIN (
    SELECT comment_post_id AS c_post_id, count( * ) AS cnt
    FROM wordpress.wp_comments
    WHERE comment_approved =1
    GROUP BY comment_post_id
    )wpc ON wpp.id = wpc.c_post_id
    SET wpp.comment_count = wpc.cnt WHERE wpp.post_type IN (
    'post',
    'page'
    ) AND (
    wpp.comment_count != wpc.cnt OR (

  6. louis vuitton says:

    thanks for sharing/

  7. Roberta J. Santos says:

    I hired an employee in mid 2007 without consulting my best friend Stephen while he was on business to another country. Few months later I realized hiring that guy was a mistake as he had made lot of trouble for me and my best friend Stephen. We tried to convince him to leave the company so we could move on but he never took the message. We then created an atmosphere that he could feel that he does not fit in so for him to force out of the situation. That worked for him to leave my group, but not the company, so that employee stayed in another group. We still did not like him as he did not fit to our department. After few days later, we feed inaccurate information to the management and force him out of the department tangling him on false charges. Management was careful when they were kicking him out. I cannot believe that this strategy to get rid of the guy that I mistakenly hired was really worked.

    Roberta J. Santos

  8. dave says:

    wordpress can be areal headache sometimes, I use dto run it on a sudoku solver site online sudoku solver but stopped

  9. Niklas Waller says:

    Hi, Thanks a lot for this. It saved me quite some thinking and work while migrating from an old blog to WordPress.

    Check out Wohill soon when the migration is done!
    -> http://www.wohill.com

  10. 1 Ping:
  11. [...] How To Diagnose And Fix Incorrect Post Comment Counts In WordPress [...]

Leave a Reply

Connect with Facebook