Skip to:
Content
Pages
Categories
Search
Top
Bottom

displaying bp_has_members by profile fields


  • talooz
    Participant

    @talooz

    Hello

    I have this loop:

            $output .= '<ul class="item-list>';
            if ( bp_has_members( 'type=popular&max=6' ) ) :        
                while ( bp_members() ) : bp_the_member();                      
                $output .= section_members_li();
    
                endwhile;
            endif;
            $output .='</ul>'; 

    On the site i have profile field that used for gender selection by the user.
    I want to make this so that if a Men is logged so it will show only Woman, And if Woman is logged it will show only Men.
    I was searching the internet for an answer and i couldn’t find one, Can anyone help me with that?

    Thank you

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘displaying bp_has_members by profile fields’ is closed to new replies.
Skip to toolbar