WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. nicolaelvin
    Member
    Posted 1 year 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 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic