-
Author
-
July 15, 2014 at 04:04 #22591iamj_kimParticipant
This might be an easy fix, just cant’t figure it out. Currently, I import data into BP, and Age (Birthday) can only be imported as Timestamp. I output age as <?php bp_profile_field_data( ‘field=Age’ );?> in the member profile header, but it shows the timestamp, not the age (see attachment). I have “Show age instead of birthdate” set to “on” in Theme options. Interestingly, it works perfectly in the profile data below (image). What code should I be using to show the age in the profile header? Awesome Theme BTW!
Attachments:
You must be logged in to view attached files.July 15, 2014 at 04:11 #22594iamj_kimParticipantI forgot to add that I had tried this fix, but it returned an error…
https://archived.seventhqueen.com/forums/topic/same-age-in-members-loop#post-8551
July 17, 2014 at 15:58 #22870CatalinModeratorHello,
Where did you add the code that returned the error? What error did you get?
Thank you,
CatalinHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 17, 2014 at 18:58 #22906iamj_kimParticipantHi Catalin,
I added <?php bp_profile_field_data( ‘field=Age’ );?> to the member-header.php file. I want to show the age, not the timestamp (birthday) in the profile header, just like below in the picture and on the site. So there is no error, just the format should be age, not YYYY-MM-DD 00:00:00. I hope I explained it clearly, if you click on the link I sent, you can probably see it more clear. Thanks.
July 18, 2014 at 16:47 #22947iamj_kimParticipantHi,
Was able to solve with workaround with help from this thread..
https://archived.seventhqueen.com/forums/topic/how-to-add-more-tabs-next-to-the-profile-image
Marking as resolved…
-
AuthorPosts
The topic ‘Show Age in Member Profile Header’ is closed to new replies.