Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] link redirecting to currently logged in user

  • @beda69

    Participant

    hello

    i need to set up a link (a “a href=”link”) in a custom menu that i coded by myself.

    the custom menu-button is a image, that shows up on the landing page of my website after users login.

    the link should lead to users wall, and of course it should lead to the currently logged in users wall, and not to site wide activity or members page.(the url should look something like this: http://www.mysite.com/members/username)

    so:
    how do i code the link in order that it gets the users ID and redirects to the currently logged in users wall-page automatically??

    i am using WP latest edition and buddy press latest edition, as well buddy press wall plugin.

    i know this special link coding exists because on buddy press menu when hitting “wall”, every user is redirected to his own wall…

    can anybody help me? 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • @shanebp

    Moderator

    try:
    href="<?php echo bp_loggedin_user_domain() ?>wall/"

    @beda69

    Participant

    thank you shanebp the link worked, taking out the “/wall” part 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] link redirecting to currently logged in user’ is closed to new replies.
Skip to toolbar