Support » Plugin: Customized Recent Comments » [Plugin: Customized Recent Comments] Double comments

  • BUG. When you use the option to exclude a category, all the comments of an article that is part of multiple categories are duplicated.

    To solve this problem just open the file “customized-recent-comments.php” and correct the query in line 505 by adding a “DISTINCT”

    Before:

    $query = "SELECT 	c.comment_ID,
    							c.comment_post_ID,
    							c.comment_author,
    							c.comment_author_email, ...

    After:

    $query = "SELECT 	DISTINCT c.comment_ID,
    							c.comment_post_ID,
    							c.comment_author,
    							c.comment_author_email, ...

    http://wordpress.org/extend/plugins/customized-recent-comments/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Customized Recent Comments] Double comments’ is closed to new replies.