Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: BP 1.2 : problem with bp_profile_group_has_fields()


grosbouff
Participant

@grosbouff

Ok, I founded out :

if ( bp_has_profile() ) {

while ( bp_profile_groups() ) : bp_the_profile_group();

global $group;

$one_group = array();

$one_group[‘id’] = $group->id;

$one_group[‘name’] = $group->name;

$groups[ $group->id ] = $one_group;

//if ( bp_profile_group_has_fields() ) {

while ( bp_profile_fields() ) : bp_the_profile_field();

//if ( bp_field_has_data() ) {

global $field;

$one_field = array();

$one_field[‘id’] = $field->id;

$one_field[‘name’] = $field->name;

$fields[] = $one_field;

//}

endwhile;

//}

endwhile;

}

Hope that it’s ok to comment those lines…

Skip to toolbar