Skip to:
Content
Pages
Categories
Search
Top
Bottom

Creating link to BP feature in Page/Post?


  • coderaider31
    Member

    @coderaider31

    For example, attempting to place a “my profile” or “edit profile” link on a pg or post.

Viewing 4 replies - 1 through 4 (of 4 total)

  • Hugo Ashmore
    Keymaster

    @hnla

    You either copy paste the url in full into your post/page editor or if you need that link to be programmatic then you would need to modify your single post /page template file to add a BP style url to logged in user.

    Explain exactly what it is that your are trying to do, if adding a hardcoded link directly to a template file then you’ll need something like:

    `profile/`


    coderaider31
    Member

    @coderaider31

    Yea that’s what’ I’m needing to do. That is basically what I had and that results in this link:
    http://myurl/profile/”>My ProfileManage your <a href="

    Somehow it’s made the rest of that text part of the link…

    I want this to be a link from a page to your profile or to edit your profile, etc.


    Hugo Ashmore
    Keymaster

    @hnla

    If that’s the link you get that is essentially mal-formed you need to look carefully at what you’ve written.

    You should show the actual code you wrote rather than, or, as well as the result.

    This should work in a standard page.php file:

    `<a href="profile/”>my logged in domain members profile`


    coderaider31
    Member

    @coderaider31

    That code string is essentially what I had and it is producing a similar broken link. I am just trying to create this link on a standard wordpress page. Is that not going to work? I just want a link on a member login page that will allow them to maintain their profile and do other BP related tasks. It is producing this kind of broken link “http://myurl/profile/”>My ProfileManage your <a href=". For example, the broken link contains text from after the code string for the url. That part that says "my profile" is the url text and "Manage your" comes after the . I am really trying to eliminate the need for the admin bar, but can’t until I figure out this hardcoded links.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Creating link to BP feature in Page/Post?’ is closed to new replies.
Skip to toolbar