Hi
If you have translated your fields you have to add this function to functions.php from your sweetdate-child theme:
COPY CODE
function render_bp_meta()
{
$output = array();
if (get_member_age(bp_get_member_user_id()))
$output[] = get_member_age(bp_get_member_user_id());
//fields to show
$bp_config = array(
'sex' => 'I am a',
'marital_status' => 'Marital status',
'city' => 'City',
);
foreach ($bp_config as $key => $val):
if(bp_get_member_profile_data( 'field='.$val )):
$output[] = bp_get_member_profile_data( 'field='.$val );
endif;
endforeach;
$output_str = implode(" / ", $output);
echo '<div class="search-meta">';
echo '<h5 class="author"><a href="'. bp_get_member_permalink().'">'. bp_get_member_name().'</a></h5>';
echo '<p class="date">'.$output_str.'</p>';
echo '</div>';
}
Change only the fields “I am a”, etc under the $bp_config array.
In v1.4 which is going out today we also have applied a filter to that array to change it easily
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution