Dynamic link with Current User

This topic contains 5 replies, has 3 voices, and was last updated by  Alex Rollin 4 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #540770

    mazin
    Expired Member
    Post count: 23

    Is there a way to create a dynamic link for the current user?
    Instead of “admin” in the below example line, I would like the “current user”.

    /members/admin/groups/

    #540794

    Kor
    Moderator
    Post count: 16516

    Hi Mazin,

    Thanks for your post. You can use something like this “/profile/” to go the “current user” profile.

    #540853

    Alex Rollin
    Moderator
    Post count: 27815

    You will need UsersWP to do something like that.

    https://userswp.io/

    #540898

    mazin
    Expired Member
    Post count: 23

    Thank you guys, I think you misunderstood my question.
    What I am trying to do is create a dynamic link on a sidebar or a page that when clicked it will take the Current User to his own groups.

    This option is not available from the WP menus and shortcodes. I believe it requires a dynamic link. The link syntax for the Admin to go to his own group is: /members/admin/groups/

    the /admin/ needs to be replaced somehow with the current user.

    #540899

    mazin
    Expired Member
    Post count: 23

    BTW, I do have userswp plugin installed.

    #541002

    Alex Rollin
    Moderator
    Post count: 27815

    Oh, sorry, now I think I misunderstood, because UsersWP doesn’t have groups – yet.

    The URLs you are showing are common for BuddyPress. If you are looking for a link to BP groups, then you will need to take that up with BuddyPress support.

Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount