This topic has 5 replies, 2 voices, and was last updated 10 years by iamj_kim.

  • Author
  • #22591
     iamj_kim
    Participant

    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.
    #22594
     iamj_kim
    Participant

    I 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

    #22598
     iamj_kim
    Participant
    This reply has been set as private.
    #22870
     Catalin
    Moderator

    Hello,

    Where did you add the code that returned the error? What error did you get?

    Thank you,
    Catalin

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #22906
     iamj_kim
    Participant

    Hi 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.

    #22947
     iamj_kim
    Participant

    Hi,

    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…

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Show Age in Member Profile Header’ is closed to new replies.

Log in with your credentials

Forgot your details?