Forums

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

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

Reply

You must log in to post.

About this Topic