- This topic has 5 replies, 3 voices, and was last updated 10 years, 3 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Lookup Member ID by name?
I’m looking at using the profile form builder to add a few fields to the member profile, and then use that to build a member directory. After looking at the php tweaks you provided, it should be easy to build a page that displays a given user’s profile by using get_member_field_by_id to retrieve the information. But how do I get the member ID? I need something like get_member_id_by_name(lname, fname) – does that exist? So far I’ve not found it. Simple enough to pull it from the database, but I’d rather not re-invent the wheel if you’ve already provided it.
Thanks for a fantastic plugin!
Hi, in the php tweaks documentation there is a code to get members First name and last name. Have you tried that code?
Thanks for the suggestion, mbrsolution – that is a great example of what I want to do, but it requires knowing the member’s ID. What I’m looking for is a way for a member to look up another member’s ID (preferably by first & last name) in order to retrieve the other member’s profile info.
Hi, thank you for the information. The plugin developers will investigate further your request.
Thank you
No, that can’t be done at the moment. The ID is kind of the key to lookup. You can’t lookup the key with a name. I wouldn’t mind adding an option to find the ID by email address (since the email address is also unique).
Thanks for the quick response. Good point about the name not being unique! Again, thanks for a great plugin!