WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Essentially what I'd like to do is have the same effect as the wp_list_authors tag, but instead of just listing the name or their post count, I want to be able to do a loop with the IDs. Ultimately I'd like have to a page with every author, with their name, description, avatar and link. I can figure out the specifics, I just need a way to do something like:

foreach $author as $author->ID

Thanks in advance,


share|improve this question
up vote 2 down vote accepted

Looks like you'll want to use get_users and you might want to take a look at the source code behind wp_list_authors to info on how to use it.

share|improve this answer
perfect, thanks! – pete_schuster Mar 9 '11 at 22:20

You can also use WP_User_Query to loop through users. You can pull user meta data (anything stored in the user profile) through this class - and you can also limit by user role/level (IE, run a different query for admins, editors, subscribers, etc.)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.