This topic has 2 replies, 3 voices, and was last updated 7 years by Radu.

  • Author
  • #162175
     larandle
    Participant

    I hate feeling like I asked a question before. But for some reason, I can’t seem to figure out what happened. I have bp profile types on my site.

    One of the things that I implemented was the profile type of every member to be located under the profile image in the activity page, where the inner side menu is. I returned today and I can’t find it. I feel like that was a hack that I asked Seventh Queen about, since it had something to do with the theme.

    Can you please explain to me how to get the profile type of all members back under the profile image on the activity page….

    I have fan, rapper, producer, hype man, ghostwriter

     

    Thank you so much.

    #162272
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #162477
     Radu
    Moderator

    Hi,

    Try this code

    COPY CODE
    add_action( 'bp_before_member_header_meta', 'kleo_bp_profile_member_type_label' );
    function kleo_bp_profile_member_type_label() {
        $member_type = bp_get_member_type( bp_displayed_user_id() );
        if ( empty( $member_type ) ) {
            return;
        }
        $member_type_object = bp_get_member_type_object( $member_type );
        if($member_type_object){
            $member_type_label = '<p class="kleo_bp_profile_member_type_label">' . esc_html( $member_type_object->labels['singular_name'] ) . '</p>';
            echo apply_filters('kleo_bp_profile_member_type_label', $member_type_label);
        }
    }

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?