Hi there, I have a question about using From/To values Field Type,
field_data
with this code.The return is
Array
, is it simply not possible to output the field data from the From/To values Field Type?Regards
CarstenPlease try passing 3rd parameter to xprofile_get_field_data as ‘comma’.
e.g.
xprofile_get_field_data( 'From', bp_displayed_user_id(), 'comma' );
Regards
BrajeshHi Carsten,
BuddyPress does not call display filter on the value if you are using it outside the loop(profile loop).You may call
$formatted = xprofile_filter_format_field_value_by_field_id(xprofile_get_field_data( 'From', bp_displayed_user_id(), 'comma' ), $from_field_id);
To get the formatted data. Please make sure you provide the correct from field id.
Regards
Brajesh
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
This topic is: not resolved