Can I add php in a custom menu link? (2 posts)

  1. nicolaelvin
    Posted 3 years ago #

    I want to get a link to the user's profile page, which is in the front end thanks to buddypress, and use that link in the menu.

    Each member's profile page has a different url e.g. /members/membername. I can use the function <?php bp_loggedin_user_domain(); ?> to get that url, however I can't paste this into a custom link in wordpress's menu ui as it strips the tags and white space. Any ideas how else to to this?

  2. @mercime
    Volunteer Moderator
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic