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
But in both case
$lenghtis equal to 0, and
$typeis null but the field is correctly printed then on the mebers loop with a regular
echo. I put
gettypejust to check why
strlendoesn’t work! I need it to trim the string to a lenght with substring…
- The topic ‘extra field manipulation in members loop’ is closed to new replies.