Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Can you run multiple profile loops in single/profile-loop.php ?


James
Participant

@janismo

`<?php
$field_id = xprofile_get_field_id_from_name( ‘Type’ );
$field = xprofile_get_field( $field_id );
$value = $field->data->value;

if ( bp_the_profile_group_name() == ‘Type’ && $value == ‘114’ ) {
( bp_has_profile( ‘profile_group_id=1,3,4′ ) ) : while ( bp_profile_groups() ) : bp_the_profile_group();
}
?>`

Full code, which should be placed in profile-loop.php,
Did I understand correctly, what @boonebgorges tried to explain?
@hnla please, take a look on this.

thank you guys!

Skip to toolbar