Skip to:
Content
Pages
Categories
Search
Top
Bottom

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


Sarah Gooding
Participant

@pollyplummer

@Boone Gorges – thanks for putting me on the right track. I’m still not getting it right. Forgive me if this is really wonky:

So I’m in the edit.php file and after this part:
if ( bp_has_profile( ‘profile_group_id=’ . bp_get_current_profile_group_id() ) ) : while ( bp_profile_groups() ) : bp_the_profile_group();

I have added the following:
if ( bp_the_profile_group_name() == ‘personal’ && get_usermeta( $bp->loggedin_user->id, ‘114’ ) ) {
( bp_has_profile( ‘profile_group_id=1,3,4’ ) ) : while ( bp_profile_groups() ) : bp_the_profile_group();
}

The 114 is the meta_value for personal selection in the profile field wherein I ask them to select Personal, Business, or Artist. The profile group name ‘personal’ is one of the field groups that applies only to ‘personal’ accounts. (<- definitely not sure if I'm doing that right)
I’m thinking I have a few things out of order…

Skip to toolbar