Skip to:
Content
Pages
Categories
Search
Top
Bottom

Display author’s page link in BuddypressMember’s Profile Page

  • @sniperkitten

    Participant

    Is it possible to display the author’s page link (example.com/author/[username]) in the Buddypress member’s profile page? I tried something like “ but it didn’t work.

    Can someone tell me the necessary function to display it?

Viewing 5 replies - 1 through 5 (of 5 total)
  • @sniperkitten

    Participant

    Anyone?

    @shanebp

    Moderator

    Try this:

    
    <?php echo get_author_posts_url( $bp->displayed_user->id ); ?>

    @sniperkitten

    Participant

    shanebp the $bp->displayed_user->id doesn’t seem to work.
    But bp_displayed_user_id() works well for me

    @springstory

    Participant

    where did you add the code to make it work?

    @stewartjanderson

    Participant

    Same question as @springstory…where does the code go to make it work? I know it will go in the same place as the code for the new tab, but beyond that, I’m a bit lost.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Display author’s page link in BuddypressMember’s Profile Page’ is closed to new replies.
Skip to toolbar