I am trying to get the “age” not the birthday to show in “members-loop” and in my theme “cover-image-heaer” but for now all it show is the birthday.
Tried searching around and can not found a way
;bp_member_profile_data( 'field=Age' );
$Age = bp_get_member_profile_data( 'field=Age' ); echo $Age;
Thanks for all the help
Welcome to BuddyDev.
Please visit Dashboard->Users->profile Fields and click on Edit For the “Age” field.
On edit page, you will see the settings. There is a setting like this
Check this if you want to show age instead of birthdate:
Please uncheck it and save. Now, the field will show date.
On the profile it shows “Age” BirthDate field – as XX Years, correctly, i am trying to show the “Age” Birthdatefield as xx years, in the members-looop.php file to as using the bp_member_profile_data( ‘field=Age’ ); but this then show the birthdate not the xx years.
is it a way to change this
I am sorry I could not reply earlier.
Please use this
<?php echo xprofile_get_field_data( "Age", bp_get_member_user_id() );?>
For members loop. The problem with it does not seem to be applying the display filter.
Using xprofile_get_field_data works.
You must be logged in to reply to this topic.