• Resolved rootstone

    (@rootstone)


    Hi there,

    Firstly, thanks so much for this great plugin! It’s very useful and powerful!

    I need a sidebar widget to put on the right side of the post, which is convenient for the logged-in users to log out or click on their Name to go back to their UM profile page.

    Is this possible?

    Currently, the only way for the user to go back to their UM profile is to click their name on the Menu. If I click the name in the Comment area, it will directly lead me to the homepage.. So I think the UM didn’t take control of the link in the Comment area.

    Many thanks for your suggestion!
    Stone

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

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

    (@champsupertramp)

    Hi @rootstone – Unfortunately, this requires customization on your end.

    You will need to add this code to your functions.php file:
    https://gist.github.com/champsupertramp/a1ed201cb05ff68bcecac4c7cd5b004b

    The code snippet adds a shortcode to retrieve UM data such as Profile photo, Profile URL and Display name for Pages and Widgets that support shortcode.

    Regards,

    Thread Starter rootstone

    (@rootstone)

    Thank You Champ Camba!!

    I tried the updated code you gave me in the link above, screenshot here:
    https://prntscr.com/pzm9hb

    But I am having the exact same issue with those people in the discussion in Github. When I use the shortcode like this: [um_user user_id=”” meta_key=”first_name” ]. Nothing shows up, but when I removed the [user_id=””] part, it shows the First Name which doesn’t have a link to the user’s profile.

    Screenshot here: https://prntscr.com/pzmbws

    So what should I change it to have a user profile link and Log-out Link so they can log out to the URL I direct to?

    With tons of many thanks for bearing with me since I don’t know much about coding…

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @rootstone

    You can use the username or ID to link the user to the profile page.

    Here’s an example:
    <a href="/user/[um_user meta_key="username"]">[um_user meta_key="first_name"]</a>

    Regards,

    Thread Starter rootstone

    (@rootstone)

    Thank you so much!~

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Put Profile & log-out Meta info on Sidebar’ is closed to new replies.