@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.
@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.