Skip to:
Content
Pages
Categories
Search
Top
Bottom

[resolved] How to display added member fields from the database


  • temmy
    Member

    @eshotope

    Hello all, I’m a newbie in the world of php. I’m want to create a profile using buddypress members. That means I have to add more fields like age, gender, country e.t.c to wp_user in the database. I’ve figured out how to add the fields to the database. Now, my question is “how do I write the php code in member-loop so as to make it display on members page. The default ones available are bp_member_name(); or bp_member_name();. How to I make age, country, phone e.t.c display.
    Thank you.

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

  • Paul Wong-Gibbs
    Keymaster

    @djpaul

    Is there a reason why you don’t want to use BuddyPress’ Profile Fields? You wouldn’t have to write any code. (wp-admin BuddyPress > Profile)


    temmy
    Member

    @eshotope

    Thanks Paul, I’ve been able to add the extra fields as suggested and displayed them on members page using echo bp_member_profile_data(‘field=the field name’); in members-loop


    Paul Wong-Gibbs
    Keymaster

    @djpaul

    Great!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[resolved] How to display added member fields from the database’ is closed to new replies.
Skip to toolbar