how to list specific user/subscriber by username with his/her avatar and with a message on a page/post?
I have a contest on my site. So I am creating hall of fame page where I can display contest winner users with their avatars and name and with a congratulation message. Can anybody help me please.
You can use get_users() function to fetch users based on any particular criteria. More info about this function is on this page
This function will return you an array. You can loop through this array to print the user list.
And to get the avatar pics of the user, use get_avatar($id_or_email) function.
How to display replies to his comments in user profile of current user
How to display list of replies to his comments in user profile of current user. my website can send notification that example: "someone replied to your comment" and when i click the link that was sent by notification email it forward me to comment page. i also want to list these replies in user profile. thanks for attention
Exclude subscriber users from user list
I want to exclude Subscribers from a user list. My code is: How can I change that so subscribers are excluded from the list? I also looked at the get_users function in codex but it did not have an exclude by role parameter. Edit: Or another way would be to get the results filtered by capability (one that subscribers doesn't have).
Echo a list of all subscriber's user IDs
I'm a complete novice with php. Can anyone let me know the code to simply echo/print a complete list of all user IDs on my site who are 'subscribers' (and not to echo any other user data).