WP Authors


WP Authors provides an “Authors” widget in the sidebar, useful for identifying all the different authors in a multi-author blog. This widget used to be present in the Widgets plugin for WordPress-2.1, but was removed for WordPress-2.2.

Installation is the usual for a sidebar widget:

  • Download the zip file.
  • Unzip it into wp-content/plugins (or upload the wp-authors.php file into the wp-content/plugins directory on the web server).
  • Go to the WordPress “Plugins” control panel and activate “WP Authors”.
  • Go to the WordPress “Presentation” control panel and configure the widgets; add “Authors” to the sidebar.

I’ve written this a sidebar widget for WordPress-2.2.

This plugin is not necessary for WordPress-2.1, because it is already included in the Widgets plugin for WordPress-2.1.

If you like this plugin (or if you don’t), please leave a comment with a link to your website.

  1. #1 by Xeph on Wed Aug 8, 2007 - 10:12 am

    Hi. WP Authors is working, but there is a problem, i guess.

    If there are 4 widgets on my sidebar and put WP authors on second order, it looks like here

    but normal state is not like that, here’s normal : pic ( i put WP authors fourth order )

    in summary, if WP Authors widget is on last order, it look great, but if I put that before any other widgets, it has problems.

    check this please :) and sorry for my fool english :(

  2. #2 by Karan on Thu Aug 9, 2007 - 5:20 pm

    I have activated your plugin and added the command

    to my Author template to add both name and image of the author and I get nothing on the Author Page and I just get the Author id on the main posts.

    Any ideas how I can fix this.

  3. #3 by Karan on Fri Aug 10, 2007 - 11:37 am

    I only want the Authors listed in my sidebar. Currently every regsitered user appears even though they are only subscribers and not authors. How can I fix this so only Authors appear.

    I also see in the code that empt Authors should not be listed but they are. Look here http://www.optimalaccess.com/blog/

    Stefan Ritzi is a subscriber with no posts.

    Thanks for the help.

  4. #4 by Brian on Mon Aug 13, 2007 - 2:59 pm

    any idea why it was removed for the 2.2 release?

  5. #5 by Karan on Mon Aug 13, 2007 - 11:05 pm

    I am not sure what is going on here, but I have had this happen twice. I added the wp_author, I add it as a widget, I edit the parameters on the server and save the file and add the widget to my sidebar and it works fine. Next I click to edit the Title of the widget and thing break. The widget now lists all the registered users (Authors and subscribers) and further I notice that the widget does not save the options! Can you please hlep fix this, I really need this working. Any help appreciated.

  6. #6 by Rob on Sun Aug 19, 2007 - 4:47 pm

    wp-authors 1.0.2 is now available and should fix the problems described in #1, #2, #3, and #5.

  7. #7 by Karan on Mon Aug 20, 2007 - 7:51 am

    Thanks Rob, the new version has solved all the problems mentioned and is very useful.

  8. #8 by Tobi on Sun Aug 26, 2007 - 9:33 am

    Hey Rob,

    what string (in which file?) must be edited, that the name of the widget isn’t anymore “Authors”? I want to translate the headline to german, but cannot found them in the wp-authors.php. Please tell me.

    Additionally the “Authors” Headline is shown in one row with the text below. This is not the same behavior like the other widgets. See this Screenshot and the blue line for example.
    This problem is independent from the configured order.

    Thanks for your support.

    Best Regards from sunny Berlin

    Tobi

  9. #9 by Rob on Sun Aug 26, 2007 - 2:18 pm

    > what string (in which file?) must be edited, that the name of the
    > widget isn’t anymore “Authors”? I want to translate the headline
    > to german, but cannot found them in the wp-authors.php.

    Navigate to “Presentation”, “Widgets” in your WordPress dashboard. Click on the right-side icon (as with many other widgets); you will be presented with a dialog box that allows you to configure the widget title and other options.

    > Additionally the “Authors” Headline is shown in one row with the
    > text below. This is not the same behavior like the other widgets.

    You found a bug; I have released wp-authors 1.1 to fix this issue. Thanks!

  10. #10 by Tobi on Sun Aug 26, 2007 - 2:21 pm

    No Problem!

    Thanks for your quick support.

  11. #11 by flo on Sat Sep 8, 2007 - 12:50 pm

    Can you tell me if I can change the order of the authors ? I’d like to display them by number of posts but I change the orderby variable in the file, it doesn’t work…

    Thank you for your help !

    Flo

  12. #12 by Rob on Sat Sep 8, 2007 - 2:07 pm

    Can you tell me if I can change the order of the authors ? I’d like to display them by number of posts but I change the orderby variable in the file, it doesn’t work…

    The order cannot be changed by the plugin; you could change the order by modifying your WordPress core file wp-includes/author-template.php; the query there has a hard-coded “ORDER BY display_name”. This would have to be edited to incorporate some kind of join to order by post count.

  13. #13 by James House on Wed Oct 3, 2007 - 8:06 pm

    Hi, I just upgraded to WP 2.3 and the newest wp-authors. WHen I go to presentation -> widgets, and click on the authors widget, i get this:
    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/23573/domains/linuxbraindump.org/html/wp-content/plugins/wp-authors/wp-authors.php on line 58

    Any ideas?

  14. #14 by Rob on Fri Oct 5, 2007 - 1:21 am

    Hi, I just upgraded to WP 2.3 and the newest wp-authors. WHen I go to presentation -> widgets, and click on the authors widget, i get this:
    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/23573/domains/linuxbraindump.org/html/wp-content/plugins/wp-authors/wp-authors.php on line 58

    I am unable to reproduce this problem, but I saw a potential problem. Try upgrading to WP-Authors-1.2 and see if that fixes your problem.

  15. #15 by James House on Fri Oct 5, 2007 - 4:53 pm

    That fixed it right up. Thanks!

  16. #16 by Robert on Tue Oct 9, 2007 - 5:50 am

    I don´t use widgets as they mess up some of my plugins. Can you please also provide the code for manually installing your plugin in sidebar.php? Thanx for any help! Bob

  17. #17 by Robert on Tue Oct 9, 2007 - 5:50 am

    Once again (for notification)

  18. #18 by Rob on Tue Oct 9, 2007 - 10:34 am

    I don´t use widgets as they mess up some of my plugins. Can you please also provide the code for manually installing your plugin in sidebar.php?

    Widgets work a certain way for a reason. If a plugin causes all your widgets to break, then it is the plugin needs to be fixed, not all the widgets. Sorry, but I cannot help you.

  19. #19 by Ian on Thu Oct 11, 2007 - 4:04 pm

    Hi there,

    Nice plugin indeed !……BUT what if you only want “editors” posts rather than “authors” posts ?…………

    This would be very useful to me …..Thanks !

    Cheers

  20. #20 by Rob on Thu Oct 11, 2007 - 9:03 pm

    BUT what if you only want “editors” posts rather than “authors” posts ?…………

    This is possible with the plugin, but will not be done. The reason is that WordPress user capabilities (“editor”, “author”, etc.) are not really exposed in to the plugin API. Any such functionality would require direct SQL queries, which would leave plugins vulnerable to breakage with every WordPress upgrade.

  21. #21 by Ian on Fri Oct 12, 2007 - 10:14 am

    Ok Rob thanks for your reply…

    All the best !

  22. #22 by Gerhard Lehnhoff on Thu Oct 18, 2007 - 11:56 am

    Hi Rob,

    I internationalised your plugin a bit so that it is working with po- and mo-files. If you are interested in, please send me an email.

    gl

  23. #23 by Rob on Mon Oct 22, 2007 - 10:32 pm

    Thank you very much, Gerhard.

    Version 1.3 has been released, which includes i18n/l10n support (DE included with download).

  24. #24 by yok on Wed Oct 24, 2007 - 5:44 pm

    where is the download file? This download is linked the wordpress.org but file not found.

  25. #25 by Joel Burslem on Wed Oct 31, 2007 - 5:43 pm

    Any way this plugin could also output the individual author’s feeds as well?

  26. #26 by Rob on Wed Oct 31, 2007 - 6:17 pm

    Author-specific feeds have nothing to do with plugins; it is up to your theme to make the author feed easily accessible to your readers. The author-specific feed is just:

    http://website/blog/author/<authorlogin>/feed/

    (Substitute your WordPress url for “/blog”.)

  27. #27 by WBK on Fri Nov 2, 2007 - 2:28 pm

    I am looking for such a widget that will list authors who have posted within a certain time period; that is, de-list them if they don’t contribute. Anything like that possible?

  28. #28 by diana on Fri Nov 30, 2007 - 8:54 am

    Nice plug-in! I’m using it on our new Core Knowledge Foundation blog.

    I would like to exclude a particular author; we have a generic author for some bits and pieces in the blog, in other words, not a genuine “author”.

    I looked at the code, but I’m really not sure of the best way to do this. Suggestions?

  29. #29 by Rob on Fri Nov 30, 2007 - 11:21 am

    I would like to exclude a particular author; we have a generic author for some bits and pieces in the blog, in other words, not a genuine “author”.

    I looked at the code, but I’m really not sure of the best way to do this. Suggestions?

    This is a limitation of the WordPress API (wp_list_authors in wp-includes/author-template.php), which doesn’t provide a mechanism for filtering the list. Currently you’d have to hack your WP core to get your desired functionality, or change the plugin to use raw SQL to get a list of authors (which would cause the plugin to be subject to breakage when new WordPress releases come out).

  30. #30 by diana on Mon Dec 3, 2007 - 6:57 am

    thanks for the explanation, Rob!

  31. #31 by diana on Thu Dec 13, 2007 - 8:48 am

    I redefined an editor as an admin, but I can’t exclude display of these posts using the widget configuration settings. No matter whether “exclude admin” is checked or unchecked, the site still shows these posts. Other settings work, such as show/hide post counts. Ideas?

    —Diana

  32. #32 by Rob on Thu Dec 13, 2007 - 9:32 am

    I redefined an editor as an admin, but I can’t exclude display of these posts using the widget configuration settings. No matter whether “exclude admin” is checked or unchecked, the site still shows these posts. Other settings work, such as show/hide post counts. Ideas?

    The “exclude admin” refers to the actual “admin” user, not a user with admin capabilities.

    The WordPress API for obtaining some set of authors is just not that rich; the options you see in the WP Authors plugin configuration AI is all it is capable of donig. Anything more will require patching and submission back into the WP core.

  33. #33 by doyle on Tue Jan 8, 2008 - 5:40 pm

    I was wondering if there was a way of altering the code of the plugin so it could be displayed as a dropdown menu instead of just a list. It seems like it would be pretty simple, but I’m new to wordpress and php coding, so what do I know.

    Thanks for the plugin and your help

  34. #34 by laura on Wed Jan 30, 2008 - 12:18 am

    hey there. I’m also interested in altering the plugin so it could be displayed as a dropdown menu. Do you think it can be done..and how…i really don’t know php that much..so i need help

  35. #35 by Tara on Wed Jan 30, 2008 - 7:38 pm

    Hi,

    First of, I want to thank you very much for making this tool available (wp-authors plugin). I am using this tool for the one of the sites I volunteer for which has lots of contributing authors.

    As happy as I am with just the way it is, I thought it would be nice collapsible—something collapsible wp-authors. This way, let’s say if we had a hundred authors, the list wouldn’t seem endless…

    Thank you. You have done a great job.

    Tara
    http://www.khmervoice.com

  36. #36 by Bricksmith on Wed Feb 20, 2008 - 8:47 am

    Any idea how I might integrate the User Photo plug-in? User photo allows users to associate a photo with their account. It’s set up to use with posts/comments.

    I’d like to insert a thumbnail photo with the associated author in the WP Authors sidebar widget.

  37. #37 by David Hunt on Thu Feb 21, 2008 - 7:20 am

    I have recently installed the plug-in and am testing it.

    Seems to be rendering fine but when you follow the link into the it just throws an 404 error ?

    Any suggestions.

  38. #38 by software developer on Fri Apr 4, 2008 - 1:59 am

    Thank you. We are using plug-in on our website and quite happy with it ..
    keep working community need it..

  39. #39 by Sharon on Sat Apr 5, 2008 - 3:15 pm

    wp_authors does not seem to be working with wordpress 2.5. The link on the home page throws a 404 error. I will try to debug, but you may have others like me.

  40. #40 by Diana on Mon Apr 14, 2008 - 11:44 am

    sigh, Authors plugin not working with 2.5 for me. If I activate it, the widget appears at the top, showing ALL registered users, no matter what I do in the widget management screen.

    And I really want an Authors plugin. :(

  41. #41 by Diana on Mon Apr 14, 2008 - 12:07 pm

    OK, this one worked. Maybe just updating the widget config did it?

  42. #42 by rocky on Sun Apr 27, 2008 - 8:53 am

    If anyone has a moment, I am trying to figure out how to apply a profile pic to the author public profile from this plugin. I am not understanding the readme instructions inlcuded.

    Thanks

  43. #43 by Victor on Sun Apr 27, 2008 - 4:23 pm

    Hello there! Thank you for your great widget and plugin.
    I want to ask you how can i make the widget link the author name to its url and not to the wordpress url that shows his posts. I would like to link it to his url entered in the users profile. I looked in the php file and couldn’t seem to figure out what and where to put. Please help me out here. Thank you!

  44. #44 by Rob on Sun Apr 27, 2008 - 7:52 pm

    I want to ask you how can i make the widget link the author name to its url and not to the wordpress url that shows his posts. I would like to link it to his url entered in the users profile. I looked in the php file and couldn’t seem to figure out what and where to put.

    Excellent feature request, but unfortunately this is outside the scope of the wp-authors widget. Your requested feature would require modification to the WordPress core routine wp_list_authors.

    Perhaps the widget referenced in #43 can do more for you (I haven’t looked at it, myself).

  45. #45 by Sourenaa on Thu Jun 26, 2008 - 11:56 am

    Excellent plugin. I am using it in the website I customize for an online magazine:
    http://thepublicsphere.com/2008/06/evidence-of-things-hidden-behind-the-voting-booth/

    I have a suggestion: is it possible for you to add an option for organizing the authors’ names alphabetically? It is very necessary for multiple-authors websites where you want everyone treated equally.

  46. #46 by Hugo on Mon Oct 6, 2008 - 5:21 am

    It would be great if it was possible to change the order of the author. I would also like to display them by number of posts. I have seen that I would have to modify my WordPress core file wp-includes/author-template.php at “ORDER BY display_name” but I don’t know the code to order the authors by posts. Any solution?

  47. #47 by Pam on Thu Nov 6, 2008 - 2:12 pm

    I have customized my sidebar php and I don’t want to use the widgets, can you provide the php call to this plugin?

  48. #48 by HeavenSkyy on Fri Nov 28, 2008 - 6:06 am

    I like your wp author on the sidebar because i am running a writing website so it makes it easier to people to find their favorite writer. Uhm I thinking about maybe puting it in the header and make a dropdown list…

  49. #49 by tenis on Sat Feb 28, 2009 - 3:34 pm

    I have 1.3.1 version The “Authors” Headline is shown in one row with the text below. This is not the same behavior like the other widgets.

    http://www.eltenis.com

    Thanks for your support.

    Best Regards

  50. #50 by Jonah on Mon Mar 2, 2009 - 4:24 am

    For authors that don’t have any posts up yet (so post count is at 0), there is no link to their author page. Is this intended or is something wrong with my plugin? If it’s intended, could you instruct me on what / where to change the plugin so that all authors are linked to their wordpress page. thanks

(will not be published)