This topic has 3 replies, 2 voices, and was last updated 9 years by Laura.

  • Author
  • #78960
     iamj_kim
    Participant

    Hello,

    I’m using the code below successfully. However,I would like to replace the City with the User ID in the Members Loop. How would I do that? Thanks.

    //Members Directory Page Meta Fields
    add_action(‘after_setup_theme’,’kleo_my_member_data’);
    function kleo_my_member_data()
    {
    global $kleo_config;
    //this is the details field, right now it take the “About me” field content
    $kleo_config[‘bp_members_details_field’] = ‘About me’;
    //this display the fields under the name, eq: 36 / Woman / Divorced / Berlin. Modify with the names of the fields you want to appear there
    $kleo_config[‘bp_members_loop_meta’] = array(
    ‘Height’,
    ‘City’,
    );

    }

    #79279
     Laura
    Moderator

    Hello, the User ID is the name of a field? if so, just change City for User ID
    If you mean the actual user id, that is not possible right now

    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 🙂

    #79458
     iamj_kim
    Participant

    Hello,

    Can you tell me how to insert “<?php echo bp_member_user_id(); ?>” for City?

    Thanks

    #79669
     Laura
    Moderator

    Hello, right now that is not possible, you would need to edit the function

    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 🙂

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?