Skip to:
Content
Pages
Categories
Search
Top
Bottom

Dynamic URL profile links for WP Nav Menu


  • craig
    Participant

    @craigheyworth

    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)
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