Pippins Plugins
  • Email
  • Facebook
  • Feedburner
  • Github
  • Google
  • Twitter
  • Vimeo
  • Youtube
  • Rss
  • About
  • News
  • Join the Site
    • Member Benefits
    • Member Plugins
    • Email Notifications
  • Plugin Store
    • Affiliate Area
    • Checkout
  • Plugins
    • Plugin Portfolio
      • Plugin Portfolio – List View
    • Free
    • Premium
    • Member Plugins
    • Coding Standards
    • Get Plugin Support
  • Tutorials
    • Series
      • Plugin Development 101
      • Creating a User Follow System Plugin
      • Customizing Restrict Content Pro
      • Displaying Content with Easy Content Types
      • Writing Your First WordPress Plugins, Basic to Advanced
      • Working with Widgets
      • User Submitted Image Galleries
      • Plugin Thoughts
      • Integrating Stripe.com with WordPress
      • WordPress Rewrite API
    • Member Exclusive
      • Free Members
      • Subscriber Only
    • Difficulty
      • Beginner
      • Intermediate
      • Advanced
    • Action and Filter Hooks
    • Ajax
    • Custom Post Types
    • External APIs
    • Short Codes
    • Taxonomies
    • Video Tutorials
    • Widget Tutorials
    • WordPress Admin / Dashboard
    • Working with jQuery
    • WordPress Database
    • Writing Plugins
    • Tag Index
  • Reviews
  • Support Forum
  • Contact
    • Support the Site
    • Request Code Review
    • Plugin Support

Simple Blog Authors Widget Plugin – Free

Posted on July 16, 2011 by Pippin in Free, Plugins, Utilities, Widgets 13 Comments
Home» Plugins » Free » Simple Blog Authors Widget Plugin – Free
Tweet
Love It - 4

While writing up a tutorial for the upcoming WP Roots.com, I put together this quick widget that can be used to display a list of your blog authors, including gravatars and post counts.

A greatly enhanced version of this plugin is available here

So, as the code was complete, I figured I might as well drop it into a quick plugin and make it available for all of you :)

Download the plugin below and let me know what you think!

Download
Tweet Follow @pippinsplugins
authors, blog, widget, widgets

13 comments on “Simple Blog Authors Widget Plugin – Free”

  1. davincikittie says:
    August 14, 2011 at 11:00 pm

    I really like the simplicity of this widget. I’ve noticed now that subscribers are registering on my site, they’re also appearing in the list. I’d like to be able to confine it to “contributors” and “admins” (basically anyone that makes posts on the site, not normal subscribers or or people who comment).

    Is there an easy way to make this exclusion?

    Thanks!

    Reply
    • Pippin says:
      August 15, 2011 at 9:10 am

      @davincikittie – Yes, you can add a simple parameter to the author query to prevent it from pulling certain user levels.

      So add something like this to the query: WHERE user_level != 2

  2. davincikittie says:
    August 15, 2011 at 3:00 pm

    Thanks for the quick reply! When I added the extra code to the query, all users disappeared from the widget. I checked the DB and there’s no user_level column in the users table. I found the user_level information in the usermeta table, but it was part of the meta data.

    Reply
    • Pippin says:
      August 16, 2011 at 10:15 am

      @Davincikittie – Oh shoot, you’re right, sorry. It will actually be a bit more difficult to exclude certain user levels. I’m planning to add that feature to the Advanced version today or tomorrow.

  3. davincikittie says:
    August 16, 2011 at 2:50 pm

    Great! Looking forward to it. =)

    Will you reply here when it’s ready so I don’t keep checking back impatiently? ;-)

    Reply
  4. rashid says:
    May 14, 2012 at 5:01 am

    Please tell me how can i call it ???

    Reply
    • Pippin says:
      May 14, 2012 at 10:51 am

      Once activated, the plugin will create a new Widget in the “Appearance > Widgets”. You can place it in any widgetized area.

  5. maurizio says:
    June 1, 2012 at 9:38 am

    Hi , i have the same problem. ok if name is admin, but if i’m the administrator and don’t write anything on the client blog, my name i.e. Maurizio is display on the widget like this Maurizio (0), and this’s not right!!!
    i solve it like this: if users have no post i don’t display him…
    i add this code : if (count_user_posts($author->ID) != 0) {
    after line 45: $author_info = get_userdata($author->ID);
    and this code: }
    after line 58: echo ”;

    maybe this two simple line can be added to the next version plugin..

    bye from Italy
    Maurizio

    Reply
    • Pippin says:
      June 3, 2012 at 2:23 pm

      Thanks for the suggestion. I will check it.

  6. fitorec says:
    October 9, 2012 at 2:07 pm

    Hi I just installed the plugin, the problem I had is that the authors wanted to sort by number of post, reviewing the documentation ( http://codex.wordpress.org/Function_Reference/get_users )modify the plugin as follows:

    $authors = get_users( array(
    'who' => 'authors',
    'number' => 99999,
    'orderby' => 'post_count',
    'order' => 'DESC'
    ) );

    I think that would be a good feature to include sorting option in the plugin:

    ‘display_name’ or ‘post_count’.

    Reply
  7. fitorec says:
    October 9, 2012 at 3:30 pm

    I added the feature to sort by number of posts, I made a change file that I would like to integrate these, please check:

    https://gist.github.com/3861150

    Reply
    • Pippin says:
      October 9, 2012 at 5:00 pm

      Looks great! Thanks for posting!

  8. eidsza says:
    December 3, 2012 at 7:30 am

    Hello,
    very usefull tutorial for me, but I found one error in a source code. If You want the option “gravatar” work You should replace line 51 with condition “if($gravatar) echo get_avatar($author->ID, 40);”. Unless You did not correct this lineg gravatars will show every time :o )

    Thanks Pippin.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Login

Lost your password?

Please enter your username or e-mail address. You will receive a new password via e-mail.

  • Facebook Become a Fan Like

  • Twitter Subscribe on Twitter Follow

  • YouTube Follow my Videos Subscribe

  • RSS Feed Subscribe with RSS Subscribe

Easy Digital Downloads

Most Loved

  • Love It Pro for WordPress
  • Write a “Love It” Plugin with Ajax to Let Users Love Their Favorite Posts / Pages
  • Simple Notices Pro Plugin for WordPress
  • User Bookmarks for WordPress
  • Front End Registration and Login Forms Plugin

Similar Plugins and Posts

  • Featured Comments Plugin
  • User Submitted Image Gallery – Part 7
  • Displaying Custom Post Types in Widgetized Sidebars
  • Advanced WordPress Widget Bundle
  • Simple Posts By Author Widget Tutorial and Plugin

Latest Premium Content

  • Plugin Development 101 – Introduction to Adding Dashboard Menus
  • Plugin Development 101 – Intro to Loading Scripts and Styles
  • User Follow System – Part 5
  • Plugin Development 101 – Intro to Short Codes
  • Plugin Development 101 – Registering a Custom Post Type
  • Plugin Development 101 – Intro to Actions

Latest Tutorials

  • Submitting Your First Pull Request to a WordPress Plugin on Github (2)

    Github is an extremely popular tool for managing WordPress plugins, and one...

  • Plugin Development 101 – Introduction to Adding Dashboard Menus (1)

    Adding new menus, both top level and sub level, to the WordPress Dashboard is a really common task for plugins...

  • Plugin Development 101 – Intro to Loading Scripts and Styles (16)

    In this part of Plugin...

Enter your email to receive automated updates when new posts are published

Latest Tweets

  • @gmwdesign post a ticket in the forums and I&#039;ll help as soon as able
    May 21, 2013
  • RT @WordCampSF: Reminder that WordCamp San Francisco tickets go on sale this Thurs at 10am PT. For ticket details: http://t.co/psoTDMrFpn #…
    May 21, 2013
  • RT @wpthemetut: Logging wp_mail with WP_Logging: http://t.co/GFLSIkfh4y via @YouTube
    May 21, 2013

Topics

get_user_meta Tom McFarlin register_setting meta box attachments add_shortcode hook wp_enqueue_script campaign monitor featured contextual help shortcodes add_options_page forms login short codes do_action Related posts mail chimp plugin authors attachment image comments post types apply_filters bbpress recent posts short code taxonomies custom post type Ajax images gallery Stripe jquery taxonomy widgets users add_filter add_action easy content types widget restrict content pro easy digital downloads

Weekly Newsletter

Useful Links

  • Join the Site
  • Plugin Store
  • Affiliate Area
  • Tag Index
  • Support the Site
  • Suggest a Tutorial
  • Random Post
  • Contact

Monthly Archives

(c) 2011 Pippin's Plugins