- This topic has 4 replies, 3 voices, and was last updated 10 years, 4 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › eMember – show username in profile
Here’s the deal: my client is starting an American football recruiting service. Users will be able to login and post their prospects for the paying members to see. Because of the fact that eMember is front end only and does not integrate with Formidable Pro, the data entry, I’m using eMember for registration and Formidable Pro for the data entry.
Because of the fact that eMember does not create a unique post or page for every profile, I have to run the data entries through a custom post type. So here’s my bottom line question that I’ve been trying to get answered and I need it answered ASAP because I’m on a serious deadline:
Is there anything, and I mean anything I can do that I can make the username of that person’s profile show up in a fashion that I can include it in a link to the author page? (i.e., if the user profile member ID is 2, then I can enter in a shortcode or a php hook that shows member ID 2’s username). I’m not interested in the username of the logged in user, I’m interested in the username of the profile that a visitor would be looking at.
I read that but…
I need the shortcode to go into the profile page and I need it to pull up the username of whatever profile is being looked at.
I was wondering where it says “member_id=”?” I wanted to know if there was a variable that I could put that would for example, if I was looking at mydomain.com/profile?member_id=2, then the shortcode at the bottom would automatically match that.
In other words, is there a wildcard variable I can put in that shortcode to match the member_id of the current profile.
There are PHP variables. How much PHP programmin do you know?
If you use the following shortcode (where you don’t specify a member_id), it will automatically show the username of the logged-in user (who is viewing that page):
[wp_eMember_user_details user_info="user_name"]