WordPress.org

Ready to get started?Download WordPress

Forums

Customized Recent Comments
Double comments (2 posts)

  1. tophost
    Member
    Posted 1 year ago #

    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/

  2. psn
    Member
    Posted 1 year ago #

    Thxs for above solution that solve this problem at once.

    :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags