-
Author
-
September 22, 2015 at 19:03 #78960iamj_kimParticipant
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’,
);}
September 24, 2015 at 04:59 #79279LauraModeratorHello, 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 nowHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura 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 🙂
September 25, 2015 at 06:45 #79458iamj_kimParticipantHello,
Can you tell me how to insert “<?php echo bp_member_user_id(); ?>” for City?
Thanks
September 27, 2015 at 05:56 #79669LauraModeratorHello, 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 solutionLaura 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 🙂
-
AuthorPosts
You must be logged in to reply to this topic.