Using Conditional Profile Fields with BP Profile Search
-
Hi Andrea,
I would like to define which gender should see which information in the profile data.
For that purpose I use the Conditional Profile Fields plugin and have added the code:add_filter( ‘bp_is_conditional_profile_field_active’, ‘__return_true’ );
and set the Visibility Condition to one gender only in two different profile fields, man and woman.
I then added this code with the profile Fields:$field_content = bp_get_member_profile_data( ‘field=man’ );
if( $field_content != false )
echo “man ” . $field_content;
$field_content = bp_get_member_profile_data( ‘field=woman’ );
if( $field_content != false )
echo “woman ” . $field_content;My intention was to put up one condition for each gender, but the data are shown to both genders?
Regards
Carsten
- The topic ‘Using Conditional Profile Fields with BP Profile Search’ is closed to new replies.