0

I'm working on a Wordpress project with some friends from school. But there's a problem with highlighting a user on the website. The idea is to create a 'User of the month' thing.

In the user section of the Wordpress admin panel we've created a custom field to select if a user is user of the month.

For posts we used a normal loop with an array to filter the posts on some pages. But how to do this for a user that is 'User of the month'?

We would like to show the profile picture and the full name.

Thanks!

1
  • Please include the code by which you created the custom field. Also, try to be more specific about what you want to show and on which pages.
    – cjbj
    May 17 '16 at 12:57
0

You can get users by user meta, using the WP_User_Query class. There's a great explanation at https://tommcfarlin.com/get-user-by-meta-data/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.