• Resolved jslom

    (@jslom)


    Having a hard time figuring out the function code to show my “Date of birth” field as “Age” on a member profile…Can you please provide the function? All I seem to find is old code that doesn’t work…

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jslom

    (@jslom)

    I got it..

    Changed my themes buddypress members/single/profile/edit.php

    Change line
    <?php bp_the_profile_field_name(); ?>

    to

    <?php if (bp_get_the_profile_field_name() == "Date of birth"):?>Age<?php else :?><?php bp_the_profile_field_name(); ?><?php endif; ?>
    
    • This reply was modified 7 years, 3 months ago by jslom.
    Carsten Lund

    (@carsten-lund)

    Hi, I can’t find the php file path you are referring to?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Showing Age text on profile’ is closed to new replies.