@craigheyworth
11 years, 3 months ago
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
@ubernaut
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
Oh i see. Thanks!
Yeah, we’ll see what comes back here and there
for what it’s worth i do believe that will make it into 1.9 which is due november 7th.
11 years, 2 months ago
update: this was recently patched by imathfromparis