Displaying a Specific User’s Profile Data on a WordPress Page
-
Hi, I’ve been banging my head against a search engine for about two days now trying to figure this out. What I’m trying to do is make a ‘featured users’ page template, that is able to display the avatar image, real name, and several other profile fields from a user’s profile, along with their blog posts, etc.
I would like the template to be dynamic, so that all I have to do is specify a user name and all the field data is fetched for me. One way I thought to do this would be to name the wordpress page so it perfectly matches a username. That way I could use ‘the_title’ as a user id argument.
Problem is, as a PHP nooblet, I have idea how to do this. Closest I’ve found to what I want is:
”
This function seems to contain the essence of what I’m after, but I can’t find any clear documentation on it and can’t work out how to modify it. I want to change that bp_loggedin_user_id() to a user id matching ‘the_title’. Anyone know how to do this, or where to find the documentation that would allow me to teach myself how to do it?
- The topic ‘Displaying a Specific User’s Profile Data on a WordPress Page’ is closed to new replies.