Skip to:
Content
Pages
Categories
Search
Top
Bottom

Dynamic URL profile links for WP Nav Menu

  • @craigheyworth

    Participant

    Hey all,

    I’m looking at having dynamic links in the wp nav menu.

    I’ve managed to get them widgetized by using the following code:

    <div class="quicklinks"><a href="<?php echo bp_loggedin_user_domain(); ?>">My Profile</a>
    <br>
    <a href="<?php global $current_user; echo home_url() . '/' . $current_user->user_login . '/friends/'; ?>">My Friends</a>
    <br>
    <a href="<?php global $current_user; echo home_url() . '/' . $current_user->user_login . '/messages/'; ?>">My Messages</a>
    <br>
    <a href="<?php global $current_user; echo home_url() . '/' . $current_user->user_login . '/groups/'; ?>">My Groups</a>
    <br>
    <a href="<?php global $current_user; echo home_url() . '/' . $current_user->user_login . '/profile/edit/group/1/'; ?>">Edit Profile</a></div>

    So now I’m looking at getting these links into the top nav menu set by wordpress.

    Anyone know how this can be done?

    🙂 Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • @ubernaut

    Participant

    not sure might require a plugin but for what it’s worth i already have a trac ticket for adding dynamic links for login/logout/register and i have added those to the ticket:

    https://buddypress.trac.wordpress.org/ticket/5122

    @craigheyworth

    Participant

    Oh i see. Thanks!

    Yeah, we’ll see what comes back here and there

    @ubernaut

    Participant

    for what it’s worth i do believe that will make it into 1.9 which is due november 7th.

    @ubernaut

    Participant

    update: this was recently patched by imathfromparis

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Dynamic URL profile links for WP Nav Menu’ is closed to new replies.
Skip to toolbar