• Resolved kosmicbird

    (@kosmicbird)


    Not really sure what terminology to use for this, but basically I have a user’s avatar linking to their member profile when clicked. The a href I’m using to enable this is

    <a href="http://example.com/users/user"> added to the php that is displaying the avatar.

    It works, but I’d like it to show /users/uniqueusername as the permalink instead of literally “users/user” in the bottom of the page when hovered/clicked.

    What can I substitute “/user” with so that instead of literally showing “/user” it will show the user’s displayname (ie if I’m logged in and hovering over my avatar the permalink will show http://example.com/users/kosmicbird)

Viewing 1 replies (of 1 total)
  • Thread Starter kosmicbird

    (@kosmicbird)

    Solved. I needed to use the correct php function.

    In my case, since I am using Ultimate Member to generate my members’ profiles, I needed to use something like

     $user_profile_link = um_user_profile_url();
    $header .= '<div><strong><a href="' . $user_profile_link . '">' 

    etc.

Viewing 1 replies (of 1 total)

The topic ‘Dynamic permalink?’ is closed to new replies.