Skip to:
Content
Pages
Categories
Search
Top
Bottom

Now really pulling my hair out: Displaying BP profile fields in WP post


  • matthillcomer
    Member

    @matthillcomer

    Not a repost. First post caused some sort of error and does not display on site.

    The problem: I am trying to display BP profile field data (like a person’s title) along with data like an author’s name on posts they write on the site. I’ve tried everything, spending about six hours now trying to do members loops and trying just about every suggestion I could find here and elsewhere.

    Can anyone help me figure out exactly how to display data from BP profile fields in WordPress posts?

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

  • @mercime
    Participant

    @mercime

    @matthillcomer are you referring to posts by multiple authors in single WP or posts by members in subsites of a Multisite installation?


    matthillcomer
    Member

    @matthillcomer

    I have single WP installation running BuddyPress as a plugin. No multisite.


    matthillcomer
    Member

    @matthillcomer

    Can anyone help me with this? It seems like it would be pretty easy to do… call extended profile field data from BuddyPress for a post author to display next to their author name. Anyone have some tips?


    shanebp
    Moderator

    @shanebp

    Within the context of a wp post
    $user_id would be get_the_author_id() ?

    `
    $authorBio = xprofile_get_field_data( ‘Bio’, $user_id );

    echo ‘Author’s bio: ‘. $authorBio;
    `

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Now really pulling my hair out: Displaying BP profile fields in WP post’ is closed to new replies.
Skip to toolbar