Skip to:
Content
Pages
Categories
Search
Top
Bottom

extra field manipulation in members loop


  • _natty_
    Participant

    @_natty_

    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 $lenght is equal to 0, and $type is null but the field is correctly printed then on the mebers loop with a regular echo. I put gettype just to check why strlen doesn’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.
Skip to toolbar