Re: How to show custom profile fields in a template file?
I’m using buddypress 1.2.5.2 (latest version) and wordpress 3.0.1(latest version).
What i’ve done so far: I’ve gone to ‘Profile Field Setup’ on the WordPress Dashboard under the Link ‘Buddypress’ and added the fields ‘Business Type’ with a drop down box of three options – DJs, Venue or Promoter. So when users register they choose one of these business types. I wanted these to show up on the members directory so put in to members-loop.php this code:
`<?php
//code inside the members-loop.php
$business_type= xprofile_get_field_data( “Business Type” ,bp_get_the_site_member_user_id());//fetch the text for business type
?>`
and i’ve tried:
“
Anyone have any idea where i’m going wrong?