Skip to:
Content
Pages
Categories
Search
Top
Bottom

Display more profile fields in member list

  • @mastodontmedia

    Participant

    Is there a way to display more profile fields in the member list?
    By default it seems like the first field in BASE is the only one displaying in the member list.

Viewing 12 replies - 1 through 12 (of 12 total)
  • @henrywright

    Moderator

    Hi @mastodontmedia

    You can use the following to do that.

    bp_member_profile_data( 'field=the field name' );

    Be sure to replace the field name with your actual profile field name. Also note it must be used within the members loop.

    @mastodontmedia

    Participant

    Thx for the answer, as I don’ know diddly about php…
    where do I place it?
    Where can I see the actual field name?

    @henrywright

    Moderator

    …as I don’ know diddly about php… where do I place it?

    Ah OK. Take a look at the BuddyPress Template Hierarchy article which should explain how templates work in BP. You’ll need to create your own templates if your theme doesn’t already have them.

    @mastodontmedia

    Participant

    Yep, solved where to place it, but where would I find the field name?

    @henrywright

    Moderator

    You should have given a field name when you created the field in the back-end?

    @mastodontmedia

    Participant

    You mean the display name?
    http://hovslagare.mdont.se/members/fredric/
    The field I am looking to display is the field named: Postort

    @mastodontmedia

    Participant

    I tried putting this in the members loop: <?php bp_member_profile_data( ‘field=Postort’ ); ?>
    Right below: <?php bp_member_permalink(); ?>”><?php bp_member_name(); ?>
    But no joy

    @henrywright

    Moderator

    Take a look here for how it’s done in the default template.

    @mastodontmedia

    Participant

    Yep, I understand all of that but what I can not find is the Field Name….
    but thank you for your patience and effort!

    @mastodontmedia

    Participant

    Solved the problem, I can see the field with the correct info when I inspect the element but it is not displaying on the page…

    @mastodontmedia

    Participant

    SOLVED, again, thank you

    @henrywright

    Moderator

    SOLVED, again, thank you

    Great 😀

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Display more profile fields in member list’ is closed to new replies.
Skip to toolbar