The list authors plugin by Mike Smullin listed the authors of all the posts in the blog in the sidebar; when the user presses on the name, all the posts by the user will be filters. however, this plugin only worked up until 2.6.3. At 2.7.1, the plugin simply didn’t show up on the Dashboard.
The list authors plugin by Matthew Toso worked in 2.7+ but the plugin didn’t list all the authors of the posts in the blog, only the ones that were linked to the blog, whether a subscriber, editor, etc.
The code that was changed in Matthew’s plugin was in the section where the author was pulled from the database and blog, while Mike pulled from both, Matthew only cared about the ones that were linked to the blog, so the fix was to replace Matthew’s Code with Mike’s code that were between the author tags:
Remove:
<!-- Authors -->
<ul>
<?php wp_list_authors('optioncount='.$options['Option Count'].'&exclude_admin='.$options['Exclude Administrator'].'&show_fullname='.$options['Show Full Name'].'&hide_empty='.$options['Hide Empty'].$feed_image); ?>
</ul>
<!-- /Authors -->
<span style="font-family: Georgia;">
And replace with:
<!-- Authors --></span></p>
<p style="text-align: left;"><code><ul>
<?php
require_once(ABSPATH.'wp-load.php');
global $wpdb;
global $blog_id;
$authors = $wpdb->get_col("SELECT DISTINCT post_author FROM wp_".$blog_id."_posts");
foreach( $authors as &$author) {
$author_names = $wpdb->get_row("SELECT ID, display_name, user_nicename FROM wp_users WHERE ID=".$author);
echo '<li><a href="'.get_bloginfo('url').'/author/'.$author_names->user_nicename.'">'.$author_names->display_name.'</a></li>';
}
unset($author);
wp_list_authors('optioncount='.$options['Option Count'].'&exclude_admin='.$options['Exclude Administrator'].'&show_fullname='.$options['Show Full Name'].'&hide_empty='.$options['Hide Empty']); ?>
</ul>
<!-- /Authors --></code></p>
<p style="text-align: left;">
This article was written for the Faculty of Education at the University of British Columbia and cannot be copied, modified, or published without the consent of the University.