Skip to:
Content
Pages
Categories
Search
Top
Bottom

Displaying Profile Fields in Blog Posts

  • Profile photo of philbow
    philbow
    Participant

    @philbow

    Hi,

    I want to be able to call certain fields from the authors profile, such as their Twitter name, and display them on a blog post. (i.e. “posted by Phil (@phil) on 9/17/09” where @phil is a link to their twitter profile, which is pulled from the BP profile).

    Is there a way to do this?

    I’m doing this right now using wpmu fields, but I can’t seem to find out what tag to call in BP to accomplish this.

    Any help would be greatly appreciated.

    Thanks,

    Phil

Viewing 4 replies - 1 through 4 (of 4 total)
  • Profile photo of Andy Peatling
    Andy Peatling
    Keymaster

    @apeatling

    <?php xprofile_get_field_data( $field_name_or_id, $user_id ) ?>

    A great plugin would be a profile badge widget, anyone care to write that using the template tags?

    Profile photo of philbow
    philbow
    Participant

    @philbow

    Thanks Andy!!!!

    Profile photo of Andy Peatling
    Andy Peatling
    Keymaster

    @apeatling

    You’ll have to echo that of course.

    <?php echo xprofile_get_field_data( $field_name_or_id, $user_id ); ?>

    Profile photo of Fairweb
    Fairweb
    Participant

    @fairweb

    Thanks for the tip.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Displaying Profile Fields in Blog Posts’ is closed to new replies.
Skip to toolbar