• Resolved Luís Santos

    (@elsantos)


    Hi!
    I would like to add (maybe) a shortcode to profile form and display the User ID number in profile page.

    How can i achieve this?

    Best regards

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @elsantos

    You can try this code snippet:

    add_shortcode("um_user_id", function(){
       return um_get_requested_user();
    });

    Sample usage: [um_user_id]

    Regards,

    Thread Starter Luís Santos

    (@elsantos)

    Hello @champsupertramp,

    The code works.
    In the form profile, I can get the user id through the field manager using the shortcode field, but I’m not able to use it as I wanted.

    In fact, I needed to create a custom field for the user ID and also be able to use it in the member directory, profile card, automatically.

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display User ID number in Profile’ is closed to new replies.