:deal_magyar:Authors Widget

Donation Amount:
USD

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

  1. Download the latest version
  2. Upload `authors.php` to the `/wp-content/plugins/` directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Go to ‘Appearance’ or ‘Presentation’ or ‘Design’ menu
  5. Go to ‘Widgets’ menu
  6. Drag & Drop the Authors Widget to the place you would like to display the authors’ list
  7. Optionally change the title

Screenshots

  • This is how the sidemenu will look:
  • Drag & Drop the widget to it’s place and change the title:

48 Responses to “Authors Widget”

  1. Wolforg says:

    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?

    • Gavriel says:

      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.

      • Wolforg says:

        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 :-)

        • Gavriel says:

          If your admin’s user_login was changed from admin to something else, then wp_list_authors won’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.

          • mj says:

            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

  2. Wolforg says:

    Thanks a lot Gavriel, your update and the patch works fine :-)

  3. Pankaj Arya says:

    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

    • Gavriel says:

      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.

  4. J says:

    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?

    • Gavriel says:

      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.

  5. Love the widget. :)

    Any plans to add gravatars to the author display, as an option?

  6. Ian McAbee says:

    Is there a template tag for this widget?

  7. Does this work the same for people who are listed as “contributors”?

  8. kilroy says:

    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

  9. Corey says:

    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?

  10. Sharon says:

    Is there a way for me to re-order the authors or is it only ddone alphabetically?

    • Gavriel says:

      Since the current version uses the wp_list_authors function, 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.

  11. Jason fleischer says:

    What is the Fleischer blog?

  12. LJHarb says:

    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

    • Gavriel says:

      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.

      • LJHarb says:

        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?

  13. Gus says:

    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?

    • Gavriel says:

      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

  14. Assaf says:

    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.

  15. Assaf says:

    חג שמח
    Thanks!

  16. bernardo says:

    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

    • Gavriel says:

      There’s no GUI way to do it, but you can look at authors.php in line #104 and change 'hide_empty'=>1 to 'hide_empty'=>0. If there’s a need I can add it later to the widget controls.

  17. Filip Visic says:

    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!

  18. Arsharing says:

    What should i do if i want to make limitation, so only 10 top authors that show in authors widget?

  19. Roger Due says:

    Any possibility of providing an option to display the list of authors in a dropdown?

    • Gavriel says:

      I’ve added that format to the options. Download the newest version.

      • John says:

        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?

        • Gavriel says:

          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”.

  20. Alice says:

    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.

    • Gavriel says:

      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 :)

  21. nick says:

    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

  22. Mystech says:

    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.

Leave a Reply