Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] link redirecting to currently logged in user

  • Avatar of beda69
    beda69
    Participant

    @beda69

    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)
  • Avatar of shanebp
    shanebp
    Moderator

    @shanebp

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

    Avatar of beda69
    beda69
    Participant

    @beda69

    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.