Getting profile data into the members loop

I'm having a hard time figuring out how I can get some extra profiles fields that are in wp_usermeta into the members loop.

I'm trying to get the value of "profile_company"

I've seen a lot of posts saying that this should work. But it doesn't.

<?php echo bp_member_profile_data('field=profile_company'); ?>

I also don't have any problem getting this field on my single profile page using this

<?php $ud = get_userdata( bp_displayed_user_id() ); ?>
<h2><?php echo $ud->profile_company; ?></h2>

Any ideas?

I'm using Buddypress 1.7

  • aecnu
    • WP Unicorn

    Greetings pablo2828,

    Welcome to WPMU DEV!

    Thank you for the question but custom coding is beyond the scope of the support we provide here though we do try to help if we can.

    With that said you may want to pose this question over at the Buddy Press forums considering that this is their product and they should be experts on it.

    Does anyone else have any suggestions for pablo2828?

    Let us know.

    Cheers, Joe

  • Mike
    • New Recruit

    Hiya, we haven't heard from you in a while so I just wanted to check in and see how things are going here?

    If you still need some assistance then by all means just reopen the thread or create another one for any new and related issues.


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.