Skip to:
Content
Pages
Categories
Search
Top
Bottom

“Add Friend” Button in a post

  • @simpsinator

    Participant

    Hello all,

    I’ve tried displaying the “Add Friend” button on a single post next to the author using bp_add_friend_button($post_author); (post_author returns the ID, and it works because I’m using it for other stuff on the page already). So what could be going wrong or what am I doing wrong?

    Thanks and best regards
    sim

Viewing 2 replies - 1 through 2 (of 2 total)
  • @vapvarun

    Participant

    try following apporach

    bp_add_friend_button(get_the_author_meta( 'ID' ), false);

    @simpsinator

    Participant

    Oh, awesome, with that it works, thanks so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar