url to link to a members public profile page (8 posts)

  1. agtd
    Posted 3 years ago #


    Firstly thank for looking at my question.

    I have done a lot of searching and can't seem to find the correct answer.

    I want to create a url that will link directly to a members public profile page using the user ID.

    Example: http://www.example.com/profile.php?user_id=123

    Appreciate your feedback.



  2. darrenmeehan
    Posted 3 years ago #

    I think this is what you're looking for http://example.com/?author=123

    btw: properly naming your topic allows for people to know what this is before clicking on it. And it'll allow people in the future to easily find this solution.

  3. agtd
    Posted 3 years ago #

    Darren. Thanks for your reply. I did the author option, but this only shows the comment from the author. I want to link directly to the public profile page for the specified user.

    PS not sure what happened with naming my topic. I am sure I added a heading.

    [mod: appropriate topic title added]

  4. darrenmeehan
    Posted 3 years ago #

    You'll need to use a plugin like BuddyPress to create public profiles. Or make a theme file called author.php



  5. agtd
    Posted 3 years ago #

    Already have buddy press installed. Cant seem to find anything in the search results. I can get the username from the id. I also tried to use rewrite but still could not get it to work.

  6. darrenmeehan
    Posted 3 years ago #

    Do you want the user ID to be shown in the url?

  7. agtd
    Posted 3 years ago #

    Doesn't really matter. Basically I will be providing tags to that will link back to a member profile. I need to have these tags made before I know what the member name will be. The User ID is sequential so I can have them pre-manufactured with the following: http://www.example.com/tag/1234

    Then as the user register I can then give them the tag that matches the user ID. When they type in the url http://www.example.com/tag/1234

    I need to do the following:

    1) get the user ID
    2) redirect to the member page by any means

    Hope this clarifies what I am trying to achieve.

    Thanks for your comments to date.

  8. Aya el-matbouly
    Posted 2 years ago #

    i understand u and i have the same question
    if u find the solution , told it to me

Topic Closed

This topic has been closed to new replies.

About this Topic