Skip to:
Content
Pages
Categories
Search
Top
Bottom

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


James
Participant

@janismo

thnaks @boonebgorges ,
somehow first place where I get mistake is your mentioned `if` before `bp_has_profile`
taking all together I got this code for profile-loop.php :

`

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

if ( bp_the_profile_group_name() == ‘Account Type’ && $value == ‘Selection 1’ ) {
(if ( bp_has_profile( ‘profile_group_id=1,4’ ) ) ?>

<div class="bp-widget “>

<tr>

}

`

does this code make any sense for anyone?
Am I correct, that even if I will get this code to work, it still returns only one selection of radio button?

thank you!

Skip to toolbar