Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

get profile field in buddypress

By: pablo2828 on Mar 8th, 2013  |  syntax: None  |  size: 0.27 KB  |  views: 118  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. This works in single profile page.
  2.  
  3. <?php $ud = get_userdata( bp_displayed_user_id() ); ?>
  4. <h2><?php echo $ud->profile_company; ?></h2>
  5.  
  6. But Doesn't work in members loop. I've tried this as well.
  7.  
  8. <?php echo bp_member_profile_data('field=profile_company'); ?>