Title: [New Window] Comment  Plugger
Last modified: August 18, 2016

---

# [New Window] Comment Plugger

 *  [icedtears](https://wordpress.org/support/users/icedtears/)
 * (@icedtears)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/new-window-comment-plugger/)
 * Ok, if you want your commenters to show up as “plugs” on a post, use this. If
   you want them to open in new windows, that is. see [http://www.icy-tears.org](http://www.icy-tears.org)
   And you will see, slick on enter, and see the blog. I like this, as it dosn’t
   make my site look like crap. Heres the code.
    `<?php /* 1. Include the code below
   in the index file. 2. Use one of these functions to display commenters: <?php
   comment_plugger(0); ?> - show commenters from current post <?php comment_plugger(
   1); ?> - show commenters from last post */ function comment_plugger($show = 0,
   $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[] = '[comment_author_url.'" title="'.$commenter->comment_author.'" target="new">'.$commenter->comment_author.'](https://wordpress.org/support/topic/new-window-comment-plugger/"&apos;.$commenter-?output_format=md)';}}}
   if (is_array($output)) { echo implode($sep, $output); } else { echo $none; } }?
   > thanks! PS: I DIDN’T WRITE THIS, I JUST EDITED IT.

Viewing 1 replies (of 1 total)

 *  Anonymous
 * [21 years, 6 months ago](https://wordpress.org/support/topic/new-window-comment-plugger/#post-87696)
 * I used this code on my site ([http://forlornia.net/blog/](http://forlornia.net/blog/)),
   and it worked fine on a couple of posts, until it suddenly said _none_ , even
   though there **are** comments.
    Do you have any idea about what’s going on and
   what to do about this?

Viewing 1 replies (of 1 total)

The topic ‘[New Window] Comment Plugger’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: Anonymous
 * Last activity: [21 years, 6 months ago](https://wordpress.org/support/topic/new-window-comment-plugger/#post-87696)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
