WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. agtd
    Member
    Posted 2 years ago #

    Hi,

    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.

    Thanks

    Tom

  2. darrenmeehan
    Member
    Posted 2 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
    Member
    Posted 2 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
    Member
    Posted 2 years ago #

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

    http://codex.wordpress.org/Author_Templates

    buddypress.org

  5. agtd
    Member
    Posted 2 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
    Member
    Posted 2 years ago #

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

  7. agtd
    Member
    Posted 2 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
    Member
    Posted 1 year 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