Reputation: 1747
I am having some difficulties on trying this buddypress code to work:
<?php $args = array(
'field' => 'Location',
'user_id' => $curauth->ID
); ?>
<?php bp_member_profile_data($args); ?>
it just doesn't display anything for me. Am i doing something wrong?. I am running this code in the author wordpress page. Thanks very much for your help!
Upvotes: 0
Views: 1729
Reputation: 56
this should work:
<?php
$location = xprofile_get_field_data( "Location" , $curauth->ID );
?>
actually it works for sure, cause I used it several times! :)
I never used the function bp_member_profile_data($args)
but I guess it works only inside a loop.
I hope this helped!
Upvotes: 4