Title: [Plugin: Get Recent Comments] Feature Request: Separate trackbacks from comment count
Last modified: August 19, 2016

---

# [Plugin: Get Recent Comments] Feature Request: Separate trackbacks from comment count

 *  [gaplauche](https://wordpress.org/support/users/gaplauche/)
 * (@gaplauche)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-get-recent-comments-feature-request-separate-trackbacks-from-comment-count/)
 * Hi,
 * I love your plugin and use it on both of my sites/blogs. It works fine in WordPress
   3.0 with the Thesis 1.7 theme.
 * I’d like to make a feature request though. I recently used a custom php function
   to separate trackbacks from the comment counts on posts, but I notice it didn’t
   have any effect on the comment counts for your plugin. I’m hoping you might modify
   the code below and include it in the next version of your plugin somehow. I’d
   like the number of comments displayed to match the actual number of comments 
   that a post has.
 *     ```
       add_filter('get_comments_number', 'comment_count', 0);
       function comment_count( $count ) {
       if ( is_home() || is_single() || is_page() ) {
       global $id;
       $comments_by_type = &separate_comments(get_comments('status=approve&post_id=' . $id));
       return count($comments_by_type['comment']);
       } else {
       return $count;
       }
       }
       ```
   
 * [http://wordpress.org/extend/plugins/get-recent-comments/](http://wordpress.org/extend/plugins/get-recent-comments/)

The topic ‘[Plugin: Get Recent Comments] Feature Request: Separate trackbacks from
comment count’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/get-recent-comments.svg)
 * [Get Recent Comments](https://wordpress.org/plugins/get-recent-comments/)
 * [Support Threads](https://wordpress.org/support/plugin/get-recent-comments/)
 * [Active Topics](https://wordpress.org/support/plugin/get-recent-comments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/get-recent-comments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/get-recent-comments/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [gaplauche](https://wordpress.org/support/users/gaplauche/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-get-recent-comments-feature-request-separate-trackbacks-from-comment-count/)
 * Status: not resolved