extra field manipulation in members loop
-
Hi to all,
I’ve a very simple slice of code thats seem wrong for buddypress’s members list, any help will be very wellcome!$userz = bp_get_member_user_id(); $field='Country'; $country = bp_member_profile_data(array('user_id'=>$userz,'field'=>$field )); $lenght=strlen($country); $type=gettype($country);I even try the before approach like
$country=bp_member_profile_data('field=Country');But in both case
$lenghtis equal to 0, and$typeis null but the field is correctly printed then on the mebers loop with a regularecho. I putgettypejust to check whystrlendoesn’t work! I need it to trim the string to a lenght with substring…
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘extra field manipulation in members loop’ is closed to new replies.