Authors Widget
Authors Widget shows the list of the authors, with the number of posts, link to RSS feed next to their name. It is useful in a multi-author blog, where you want to have the list in the sidemenu.
Installation
- Download the latest version
- Upload `authors.php` to the `/wp-content/plugins/` directory
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to ‘Appearance’ or ‘Presentation’ or ‘Design’ menu
- Go to ‘Widgets’ menu
- Drag & Drop the Authors Widget to the place you would like to display the authors’ list
- Optionally change the title


Hello and thnaks for this plugin
I would exclude one author of the widget but I don’t find where I must modify the widget. Could you help me?
If you want to exclude the admin, then you could check the Exclude admin checkbox. I’ve just added it to version 1.2
But if you want to exclude someone else, it’s not that easy, ’cause authors use
wp_list_authors, and it doesn’t have a parameter to exclude someone. Then either you’ll have to patch wordpress for that, or write your own function for that.Hello Gavriel and thanks for your quick reply.
As you’ve undestood, I would exclude the admin of the widget.
I’ve checked the checkbox but the admin is always visible in the widget and I don’t understand why…
Have you an idea?
Whatever, I’ve translated your plugin in french (because I’m french), fell free to contact me by mail, I’ll giving you the fr_FR.po and fr_FR.mo
If your admin’s user_login was changed from admin to something else, then
wp_list_authorswon’t exclude it. I’ve reported it as a bug, you can see it in Wordpress Trac. You can also download my patch from there.Hi there ! Great plugin, though I have a similar problem.
I can’t hide the admin unless I use the drop down menu. Is there a way to have it hidden when using the list option ?
Thanks,
mj
Thanks a lot Gavriel, your update and the patch works fine
Hey Dude
nice pligin
can you make this plugin in such a way , that the author with highest post comes on top and so on.
Thanks
It’s not possible in the current version, since it uses wp_list_authors. But I’m working on a new feature, and I think it won’t be hard to add your idea as well. I’ll keep you updated.
Hey, love your plugin. I use graphics for the heading on my blog, so where there’s “Authors” I’d like to put an image there instead. Where in the plugin do I edit?
Look at lines 30, 37. In 37 for sure you’ll be able to print whatever you want instead of
$title, but maybe you can do even better if you try in line 30 with the widget_title filter.Love the widget.
Any plans to add gravatars to the author display, as an option?
Just added avatar support. Upgrade to version 1.7
Is there a template tag for this widget?
widget_authors()should workDoes this work the same for people who are listed as “contributors”?
Yes, it doesn’t matter what role they are in.
trying to figure out how to list the authors from greatest amount of post to least amount of post.. if you know how to do this please help. If I figure it out I’ll post it here. would be nice to limit the number of authors shown also.
many thanks for the free plugin
You can order them by post count. Set it in your widget options.
Hi Gavriel – I’m no php expert and I’m wondering if there’s a way I can change the formatting of the links (ie removing the parentheses). I can’t quite figure out where those are coming from. Can you help?
In the Apperiance / Widgets menu click on Authors and uncheck the “ShowRSS links” and “Show post counts” checkboxes.
Is there a way for me to re-order the authors or is it only ddone alphabetically?
Since the current version uses the
wp_list_authorsfunction, and that doesn’t have an option for the order, you can’t change it from the plugin itself, only by manipulating wp_list_authors’ code.What is the Fleischer blog?
Family stuff
Replace the wp_list_authors line in the plugin with this, and it will sort by number of posts descending (assuming post count is shown).
I’m sure you could use this technique to add a number of sorting methods to the widget options.
http://pastie.org/642878
Thanks for the patch. I’ve added it to the plugin, and I also added it to the control panel, so now it’s easy to change order.
Awesome!
One additional change: I use the Co-Authors Plus plugin (http://wordpress.org/extend/plugins/co-authors-plus/). If you change this line:
$arr = array_slice(explode(”, wp_list_authors($list_args)), 1);
to this:
$arr = array_slice(explode(”, (function_exists(‘coauthors_wp_list_authors’) ? coauthors_wp_list_authors($list_args) : wp_list_authors($list_args))), 1);
then your plugin will be fully compatible with the coauthors plugin.
Also, perhaps you could add a descending/ascending option for the name/post count sort, and a way to input the ‘feedimage’ and ‘feed’ options for when the RSS links are shown?
Our template is not widget enabled. Is it possible for me to paste code into our sidebar to make this plugin visible? Can I take code straight from the Edit option?
widget_authors();You can also pass parameters in an array:
widget_authors(array('title'=>'', 'feedlink'=1, 'count'=>1, 'exclude_admin'=>1));The possible values are:
title: string (Authors)
feedlink (Show RSS link): 0 | 1
count (Show post count): 0 | 1
exclude_admin: 0 | 1
Great plugin!! thanks a lot!
Do you know where I need to make a change in order to change the order of the objects in the list? means, today it’s the author name first than rss icon and than the number. I want to change the order to something like:
rss icon + author name +count
Any help will be appriciated!
Thanks.
That is done by wp_list_authors(), you can find it in wp-includes/author-template.php
חג שמח!
חג שמח
Thanks!
is there any way to make all authors appear, instead of just those with published posts? or at least those with published pages. i’m working on a group blog in which not all registered authors have published posts at the moment, but it is important for all of them to show on the authors sidebar widget.
thanks
There’s no GUI way to do it, but you can look at authors.php in line #104 and change
'hide_empty'=>1to'hide_empty'=>0. If there’s a need I can add it later to the widget controls.Is there a way to show authors as a tag cloud instead as a list? I can see that this option is mentioned under changelog, but I can’t find it in widget options. Thanks!
Yes. Install SEO Tag Cloud Widget, activate it (you don’t need to add the widget to your sidebar) and then you’ll see the option in Authors Widget’s settings to chose the format as tag cloud.
What should i do if i want to make limitation, so only 10 top authors that show in authors widget?
Download the latest version. I’ve added a widget option for that (only works if you choose format: cloud)
Any possibility of providing an option to display the list of authors in a dropdown?
I’ve added that format to the options. Download the newest version.
Hm… I have version 1.6, but I don’t see the option to display the list in a dropdown menu. Could you instruct me where to go to activate this setting?
Sorry, there was a bug, it didn’t appear if you didn’t have the seo-tag-cloud widget installed. Now it’s fixed.
In the widget settings there should be a new radio button under “format” for “dropdown”.
Hello, thank you for your plugin, it works nicely, although I wasn’t able to hide ‘administrator’ roles when calling your function without using the widget.
It would be nice if you could make it, or tell me how I can list each Author Gravatar before their name in the list as well.
I fixed the bug.
About the gravatars: There are 3 formats of output: list, cloud, dropdown. For dropdown I can’t add it (or I have to change the dropdown to use html, css, and that’s a lot of work). For cloud I could add it, but I don’t think it would look nice. For the list it would look nice, but that output uses the built-in wp_list_authors function, and that doesn’t support gravatars. So it would need to rewrite the list output as well. Maybe when I’ll have time this week, I’ll try to add it for you. (A donation could make some free time
hi. this is just the widget that i wanted, however the only author that is showing is the admin, no others. have set up 2 other authors but its not picking them up. Also is there anyway or another widget you may have or recommend that would add the authors gravitar?
thanks
Nick
I added an option to show the avatars. You can upgrade to version 1.7
The tag cloud feature only seems to work if I have the SEO Tag Cloud actively deployed to the sidebar. Is there anyway way to make it work without SEO Tag Cloud being in the sidebar too? Running most current version of both plugins and WordPress. Thanks.
The SEO Tag Cloud Plugin has to be enabled, but you don’t have to add it to the sidebar.
I am trying to figure out how to remove the “Authors” title above the widget. I left the field blank, but it still appears. how can I do this? thanks!
If you leave it empty, then it’ll use the default Authors title. You can try a space (” “) or maybe even better a non-braking-space (“ ”) instead.
Thanx for the great plugin indeed !
I am using Alkivia open community, which creates special pages for every author that contains info about him, his recent activity and other useful info. it uses the following link formula for every user’s profile:
http://cinema.al-rasid.com/profiles/user/ABC/
where ABC is the user name.
However, your plugin takes the visitor to the default Wordpress user page which displays his archive, in the following formula:
http://cinema.al-rasid.com/author/ABC/
How can I change the plugin setting so that it takes the visitor who clicks on an author’s name in the widget, to his page provided by Alkivia’s open community?
Thanx in advance
I also have this “anomaly” in my blog. It’s because WP thinks that the author pages are in /author/username/. And probably WP is right, and other plugins that think that the author pages are under other directory are wrong (but I’m not sure).
Fortunatelly when I go to /authors/admin it seems to work (Even on your website, though I don’t understand Arabic, but it seems I get the right results there)
One way to fix it would be to “fix” WP. WP (and Authors Plugin) use the function
get_author_posts_urlto get the link for the author. So that function could be fixed.Other way to do it is to tell the other plugins that print out /profile/user/ABC to print out /author/ABC, and then they’ll use the WP naming convention.
BUG REPORT:
Version 1.7.
Order by number of posts works ONLY if “show posts count” is enabled.
FEATURE REQUEST:
It would be nice to have “order by ID”, as well as name or posts count.
Anyway, thanks for a nice plugin, it does the job and works just fine!
Fixed in version 1.8
Man, you are great!
Thanks.
Can you please code to publish your widget, as my theme doesn’t have Widget based theme; I want to select following options:
Title: Top Authors
Format: List
Order by: Name
Numbers of Authors to show: 30
Show Avatar: [Yes]
Avatar Size: 40
Show RSS link: [Yes]
Show Post counts: [Yes]
Exclude Admin: [No]
Hide Credit: [No]
Thank you for your help!
<?php widget_authors(array(
'title' => 'Top Authors'.
'format' => 'list',
'order' => 'name',
'limit' => 30,
'show_avatar' => 1,
'avatar_size' => 40,
'feedlink' => 1,
'count' => 1,
'exclude_admin' => 0,
'hide_credit' => 1
)); ?>
Is there a way to change this plugin’s code so that instead of displaying the “author” roles it shows the “contributor” roles? Thanks.
not yet
Hi Gavriel. Great plugin! Was wondering how the could be styled apart from the styling in the sidebar – we’re having an issue with the author’s name aligning itself side by side with the avatar no matter how big/small we make the avatar. Any ideas? We want the author’s name to be next to the avatar instead of under it.
Yes, you should be able to use a style like this:
.widget_widget_authors ul lietc. Thry to prefix it with the .widget_widget_authors. If it doesn’t work then you can also try#authors-1(the number maybe is different in your blog)Is there any way to sort authors by last name? Great plug-in, Gavriel.
Yes, install the latest version (1.9)
Many thanks!
Thanks for the plugin. Is there any ability to sort by Author’s *Last Name* rather than just the first name?
Yes, this feature was added in version 1.9
Wow. You rock! Thanks Sir!
On the authors widget, is there a way to have line break between the avatars. As is they are stacked on each other.
You should be able to affect the look by css. On my site it looks OK, I guess there’s something in your theme’s css that changes the style either for
liorimgHi Gavriel, thanks for the excellent plugin!
the “limit” or “number of authors to show” function is not working for me. I have over 10 authors and want to display the top 5.
I fixed this bug in version 1.9.1, please download it.
Thanks, just got the update and it works perfectly!
I’d really like a bit of code to leave more space in the author list, too. I’m using the Twenty-Ten Weaver theme and I can’t find the area in the CSS to style the lists.
There’s no special stlye for authors widget. You can add to your style.css something like:
.widget_authors li {margin-top:10px}
great plugin, thx!
can you add limitation for List format?
and i can’t see Cloud format in widget options )-8 just List and Dropdown
You can set the “Number of authors to show”. In order to have the tag-cloud option you need to activate the SEO Tag Cloud Widget
thx alot for fixing