Displaying the Birthday via two different functions
-
When I use
bp_get_member_profile_data( 'field=Birthdate' );
to retrieve the birthday, it outputs it as 1983-07-24 00:00:00.When I use
xprofile_get_field_data( 'Birthdate', $user_id );
it outputs it correctly as the age number.Any idea why these two functions pull a different result, and which functions is the better one to use in general for pulling profile fields data?
I did a search online for xprofile_get_field_data() to try to read up on it but BP doesn’t seem to focus on it in its codex.
Thanks,
Alexhttps://www.ads-software.com/extend/plugins/buddypress-xprofile-custom-fields-type/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Displaying the Birthday via two different functions’ is closed to new replies.