Skip to:
Content
Pages
Categories
Search
Top
Bottom

Pulling BP Data into WPMU Blog


  • mburtis
    Participant

    @mburtis

    I’ve scoured the forums and documentation for some instructions about how to do this, but I can’t find anything.

    I would like to display buddypress user information (from the user profile) within pages on a WPMU blog authored by that user.

    I found the custom Buddypress Loops at http://codex.buddypress.org/developer-docs/custom-buddypress-loops/ and I’m working with the Profile Data Loop. What I’m struggling with is how to get the author ID (I’m trying to work with the author id template tag) into the proper place in the Profile Data Loop.

    Can someone point me in the right directoy?

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

  • Burt Adsit
    Participant

    @burtadsit

    Replace the standard bp_has_profile() call with:

    $author_id = get_the_author_id_from_someplace();

    bp_has_profile(‘user_id=’ . $author_id);

    In your theme template.


    mburtis
    Participant

    @mburtis

    Thanks, Burt! That was exactly what I needed! I’ve the the author profile information displaying on a blog post, now.

    I’ve got to say I’m a bit surprised that there aren’t more widgets/plugins that enable admins to use BP information/data within WPMU blogs. The focus of extending/customizing seems to be primarily on the BP interface and features. Am I missing something? Or is this just not the focus of development, at this point?


    Burt Adsit
    Participant

    @burtadsit

    Site admins and blog admins rely on the themes that are available to them. If the theme doesn’t support bp, they don’t get that option. Talk to your friendly neighborhood theme author. :)


    eruecco87
    Participant

    @eruecco87

    Can you share the exact code you used for that? I’m trying to do the same but can’t get it to work!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Pulling BP Data into WPMU Blog’ is closed to new replies.
Skip to toolbar