May 30, 2013 at 4:04 pm 4343
|Richard||Hi, I would like to know how to display all users. I have a custom template but need to get specific profile details as well as their avatar. Once a user registers it is assigned to a custom user role. I am using wp userfrontend pro - purchased.|
May 30, 2013 at 4:08 pm 4344
May 30, 2013 at 4:10 pm 4345
Great thank you. Fast reply 🙂
May 30, 2013 at 4:12 pm 4346
Yes, you can grab the custom field values by get_user_meta function.
May 30, 2013 at 4:15 pm 4347
Tareq i tried using their code however it is the same issue i ran into before. You can only query default roles (Contributer, Author..) It doesnt seem to work when you create a custom role.
May 30, 2013 at 4:17 pm 4348
You mean you can’t display all users from a certain custom user role? That shouldn’t be the case, it should be working fine.
May 30, 2013 at 4:20 pm 4349
If i used this method will i need to specify each user or will it by default list all data for all user fields that match the meta i’m calling.
EG if i get_user_meta($name); will it display a list of all the name or will i need to specify the id of the “person”?
Hope you understand what i’m asking 🙂
May 30, 2013 at 4:23 pm 4350
Okay i did see it requires an id (sorry should have read the whole thing..).
May 30, 2013 at 4:25 pm 4351
Yes, you need to pass the user ID.
May 30, 2013 at 4:30 pm 4352
Ah i see.
What specifies the role? $authors or $author
May 30, 2013 at 4:35 pm 4353
Nothing, I’ve just gave you an example using the link (display all users) I posted above.
May 30, 2013 at 4:42 pm 4354
And it returns ‘No authors found’? I do have users assigned to that role.
May 30, 2013 at 5:23 pm 4355
I thought you understand PHP, thats why I gave you the links. Try this:
Check the user role if you are entering it correctly.
May 31, 2013 at 7:17 am 4373
Thank you, managed the rest!
January 24, 2014 at 3:46 am 14730
How would I achieve a page with all the avatars like eon basecamp?
February 6, 2014 at 9:30 am 15107
Can anyone tell me how to limit the number of user profiles on the dashboard? I have more than 20 members for each project and the user avatars have completely overrun the project info, making my dashboard area rendered useless and nothing more than a large number of profile pictures.
Any advice would be greatly appreciated. I’ve searched this forum but don’t see any gore issue related to this and why I chose to post here as it’s loosely related.
I thank you in advance.