@shanebp Thanks. I used the code and put it in the members-loop. No result. I can see the fields in the admin section as well as in the profile. I can change visibility to one of the four possibilities. But none shows up in the members listing. I don’t get it.
@shanebp Had support from the developer of xprofile. He thinks has something to do with buddypress. I don’t know. What I do know is that if I have the following code in the members-loop file:
<?php $hidden_fields = bp_xprofile_get_hidden_fields_for_user(bp_get_member_user_id()) ; ?>
<?php if (xprofile_get_field_data(‘field_name’) && !in_array(xprofile_get_field_id_from_name(‘field_name’), $hidden_fields)) : ?>
<?php echo xprofile_get_field_data (‘field_name’); ?>
<?php endif; ?>
<?php bp_member_profile_data( ‘field=Adres’ ); ?>
The first code with $hidden_fields and xprofile doesn’t return anything.
The second code does always return data, no matter how visibility is set.
Any ideas?
I’m not sure what the problem is.
You might be interested in our premium plugin that will handle everything for you.
BuddyProfileData
that does the trick. Thank you
@shanebp would you premium plugin allow me to hide the BP name field?
This is a problem for me as members do not change their name and then complain about privacy
Regards
Mike
@aussiemike
I’m not sure what you mean, but if you mean the member names as shown in the loop on the members page, then no.
If you’d like more info, please use:
Services
Thank you. I have sent a message through your contact form
Mike