WordPress.org

Support

Support » How-To and Troubleshooting » Can I add php in a custom menu link?

Can I add php in a custom menu link?

  • nicolaelvin

    @nicolaelvin

    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?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Can I add php in a custom menu link?’ is closed to new replies.