Support » Plugin: Buddypress Xprofile Custom Fields Type » Showing Age text on profile

  • 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)
  • 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 1 year, 10 months ago by  jslom.

    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.