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.

The functions that I am aware of:

WP_User

and

wp_get_current_user

seem to only get the user object of the current user. As an administrator, if I want to display certain profile information in a table from each user, how can I loop through the ids?

Can this be done with WP template tags or should I resort to SQL?

Thanks in advance

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

How about using get_users()? You probably don't even need parameters for it, default behavior should be just what you're looking for.

share|improve this answer
add comment

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.