Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_ functions in wordpress strict page

  • Avatar of jacor3003
    jacor3003
    Member

    @jacor3003

    Hi,
    I’m learning BP and wonder if i can use bp_ functions in static wordpress sites.
    The site works fine but… I’ve created page “Test” wich id is 40 and in my theme folder i’ve created file “page-40.php” in this file i’m loading header-buddypress.php instead of header.php but i cannot access functions like `bp_displayed_user_avatar()` or `bp_members_component_link(‘profile’, ‘public’)`. Is there a way to make this stuff works?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    bp_displayed_user_avatar only works on a members profile page use bp_core_fetch_avatar

    not all functions work out of their components

    Avatar of jacor3003
    jacor3003
    Member

    @jacor3003

    That make sense, Thank You.

    Avatar of ggsalas
    ggsalas
    Participant

    @ggsalas

    Hi, So how do I can use the function out of their component?

    Today I’m tried to create a navbar with name and thumbnail of the user.

    Thanks

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

You must be logged in to reply to this topic.