Title: comment plugger tweak?
Last modified: August 18, 2016

---

# comment plugger tweak?

 *  [arwennn](https://wordpress.org/support/users/arwennn/)
 * (@arwennn)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/comment-plugger-tweak/)
 * I used the comment plugger hack found at [http://wiki.wordpress.org/?pagename=Comment%20Plugger](http://wiki.wordpress.org/?pagename=Comment%20Plugger)
   and after setting it up and testing it out, I realized that it lists the commenters
   for the current entry. Is there any way to tweak it so that it lists the commenters
   of the previous entry?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/comment-plugger-tweak/#post-139610)
 * This has been requested a few times, and if there is a fix, it has not been posted
   to these forums as far as i know. Sorry !
 *  [litaloo](https://wordpress.org/support/users/litaloo/)
 * (@litaloo)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/comment-plugger-tweak/#post-139968)
 * Actually.. I could’ve sworn that I had a tweak for the hack. Because I used to
   have it set up so that it would do that: plug the commentors from the previous
   post. Or something. Okay, I found what I used to use (and now that I found it,
   I’m using it again) in my old my-hacks file. I found this tweak somewhere on 
   these boards. Hope this is what you’re looking for. This is what I use:
    ` <?
   php function comment_plugger($show = 1, $limit = 0, $sep = ' - ', $none = ' none'){
   global $wpdb, $tablecomments, $id; $cid = ($show) ? ($id - 1) : $id; $request
   = "SELECT DISTINCT comment_author_url, comment_author FROM $tablecomments"; $
   request .= " WHERE comment_post_ID='$cid' AND comment_author <> '' AND comment_author_url
   <> ''"; $request .= ' ORDER BY comment_author ASC'; $request .= ($limit > 0) ?"
   LIMIT $limit" : ''; $commenters = $wpdb->get_results($request); if ($commenters){
   $output = ''; foreach ($commenters as $commenter) { if (!empty($commenter->comment_author_url)){
   $output[] = '<a>comment_author_url.'" title="'.$commenter->comment_author.'">'.
   $commenter->comment_author.'</a>'; } } } if (is_array($output)) { echo implode(
   $sep, $output); } else { echo $none; } } ?>
 *  [m8rk](https://wordpress.org/support/users/m8rk/)
 * (@m8rk)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/comment-plugger-tweak/#post-140079)
 * I have another question on this – i’m trying to use the comment plugger as a 
   blogroll generator. So i’d like to pull the names of ALL commentors. Is this 
   easily possible? It’s what I [nievely] assumed the plugin did out-of-the-box.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘comment plugger tweak?’ is closed to new replies.

 * 3 replies
 * 4 participants
 * Last reply from: [m8rk](https://wordpress.org/support/users/m8rk/)
 * Last activity: [21 years, 2 months ago](https://wordpress.org/support/topic/comment-plugger-tweak/#post-140079)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
