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.

Solutions

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.

Tags: PHP / Wordpress / Plugins

Similar questions

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
How to display a custom text only for a specific product category AND his child category in Woocommerce archive page
I want to display a custom text in woocommerce archive page, for a specific product category and all his child categories. I used that code in woocommerce >> archive-product.php my custom text is ONLY displayed when the parent category (world fashion ) is selected. How to show it for all his child categories ?
Is there a way a user/member can upload a file and link it in his profile page?
I would like to know if it's possible, with MemberPress or other plugin, for a member to upload an audio file and create a link on their profile page so other members can download the file. Thanks a lot! neuhaus3000
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).
How to get name and email value from a custom form and add it to campaign monitor subscriber list?
I have a custom form in my site that has name and email address field. How can I get the value of this 2 fields to be added on campaign monitor subscriber list when the user successfully submits the form? This is my form action:

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.