Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: bp_the_profile_field_value always returns ”1970 January 1st” in BP1.2.7

Because I know the field name or id for datebox, and I use onlye one datebox for birthday, I changed as following just for myself:

At around line 40 of profile-loop.php located in /wp-content/plugins/buddypress/bp-themes/bp-default/members/single/profile

[ Original ]
<?php bp_the_profile_field_value() ?>

[ Changed ]
<?php
if (bp_get_the_profile_field_name() == ‘FIELD NAME’) {
echo date(‘DATE FORMAT’,xprofile_get_field_data(“FIELD NAME or FIELD ID”));
}
else {
bp_the_profile_field_value();
}
?>
Note that DATE FORMAT, FIELD NAME and FIELD ID are to be replaced with the true value.

Once again, this is just only temporary fix, and I still wait until someone comments to this post. Currently, I am wandering if I post to http://trac.buddypress.org.

Skip to toolbar