Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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,

Pete

share|improve this question

2 Answers 2

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

 
discard

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.