Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

How Do I Display The Member's Username?

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › How Do I Display The Member's Username?

  • This topic has 3 replies, 2 voices, and was last updated 13 years, 10 months ago by Zain.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • July 10, 2011 at 12:02 am #3767
    Zain
    Participant

    Hi,

    Is there any shortcode to display the user’s profile information? For example:

    Hi [emember_firstname], How's it going?

    Cheers,

    Zain

    July 10, 2011 at 1:44 am #34142
    amin007
    Participant

    Update: Shortcodes to display any member details:

    https://support.tipsandtricks-hq.com/forums/topic/how-to-retrieve-and-show-a-particular-info-of-the-logged-in-member


    Just added the following two shortcodes in eMember:

    [wp_eMember_first_name]

    [wp_eMember_last_name]

    You can get a new build of eMember from here:

    https://support.tipsandtricks-hq.com/update-request

    July 11, 2011 at 5:45 am #34143
    Zain
    Participant

    Thanks again Amin. You Rock! Please remember to update the Shortcodes PDF file – that’s invaluable and I’m sure a lot of Admins, like me, use that all the time. I do tend to find that not all of the shortcodes are in there – occassionally there’s some on this forum. Would be great if they’re in once place…

    BTW, a Shortcode PDF is something that WishList don’t do! You have to watch the videos or go through a lot of documentation to find the 1 line you need… ouch!

    Cheers,

    Zain

    July 11, 2011 at 6:17 am #34144
    Zain
    Participant

    Just to let you know that I’ve amended this slightly so that the name shortcodes have <span> with a class round them. This is because sometimes User’s add their names *without* putting capitals on the firstname – having a span means that an Admin can fix this with a line of CSS.

    Anyway, on wp_eMember1.php – on line 645, I’ve now added:

    return '<span class="eMemberFirstName">'.$first_name.'</span>';

    On line 653, the lastname has changed to:

    return '<span class="eMemberLastName">'.$last_name.'</span>';

    In the styles, an Admin can now use:

    span.eMemberFirstName, span.eMemberLastName { text-transform: capitalize; }

    And that will change the member’s name to be corrected.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ