This topic has 1 reply, 2 voices, and was last updated 10 years by SQadmin.

  • Author
  • #533
     Noz
    Participant

    All in the title… I have created a full profile but the sum-up area in members search results shows a white box with no detail between Pseudo and view profile button…

    #543
     SQadmin
    Keymaster

    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
Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?