Title: pints1ze's Replies | WordPress.org

---

# pints1ze

  [  ](https://wordpress.org/support/users/pints1ze/)

 *   [Profile](https://wordpress.org/support/users/pints1ze/)
 *   [Topics Started](https://wordpress.org/support/users/pints1ze/topics/)
 *   [Replies Created](https://wordpress.org/support/users/pints1ze/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/pints1ze/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/pints1ze/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/pints1ze/engagements/)
 *   [Favorites](https://wordpress.org/support/users/pints1ze/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Major overhaul coming to Co-Authors Plus](https://wordpress.org/support/topic/major-overhaul-coming-to-co-authors-plus/)
 *  [pints1ze](https://wordpress.org/support/users/pints1ze/)
 * (@pints1ze)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/major-overhaul-coming-to-co-authors-plus/#post-1211103)
 * Great plugin, was exactly what I was looking for.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [[Plugin: Co-Authors Plus] Displaying Multiple Authors?](https://wordpress.org/support/topic/plugin-co-authors-plus-displaying-multiple-authors/)
 *  [pints1ze](https://wordpress.org/support/users/pints1ze/)
 * (@pints1ze)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/plugin-co-authors-plus-displaying-multiple-authors/#post-1125821)
 * I just recently ran into this problem, but didn’t want to find every occurance
   of the_author() in my theme. I put together a filter that hooks into the_author()
   in my themes functions.php file that did the trick… It could probably be cleaned
   up quite a bit, but hopefully it helps:
 *     ```
       function use_coauthors() {
       	$authors = get_coauthors();
       	$numauthors = count($authors);
       	$result = '';
       	foreach($authors as $author){
       		$result .= $author->display_name;
       		if ($numauthors > 2) {
       			$result .= ', ';
       		} elseif ($numauthors == 2) {
       			$result .= ' and ';
       		} else {
       			$result .= '';
       		}
       		$numauthors--;
       	}
       	return $result;
       }
       if ( function_exists('get_coauthors') )
       	add_filter('the_author','use_coauthors');
       ```
   

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