Skip to:
Content
Pages
Categories
Search
Top
Bottom

How do I load BuddyPress functions?


  • BobSD99
    Participant

    @bobsd99

    This is probably a dumb question, but how do I load BuddyPress functions in a custom page?

    I’ve created a custom page template in WordPress, and had expected that I can access bp functions (such as bp_displayed_user_domain() in that page. But it’s not working, so I assume I have to include a file or call a function to access BuddyPress functions.

    Can anyone help me out with how to access BP functions from a custom template?

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

  • shanebp
    Moderator

    @shanebp

    bp_displayed_user_domain() only works on profile pages.
    Try using bp_loggedin_user_domain()


    BobSD99
    Participant

    @bobsd99

    D’oh, I wanted a generic testing function and that obviously wouldn’t work in that context.

    However, I did change it to the function you suggested and it’s still not outputting data. There must be a missing step in loading and making BuddyPress functions available in my own custom template pages.


    BobSD99
    Participant

    @bobsd99

    Double d’oh! I wasn’t logged in when I tested it just now. I was right, it was a dumb question. Thanks Shane!

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