Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: [Resolved] Custom Display on Members Directory

@shanebp

Moderator

>As an alternative solution, is it possible to exclude all members in the above list if they had selected ‘N/A’ for Dog Breed?

Yes, there are 2 ways:

1) https://codex.buddypress.org/plugindev/using-bp_parse_args-to-filter-buddypress-template-loops/
2) https://codex.buddypress.org/developer/loops-reference/the-members-loop/#code-examples

>Is it possible for me to not display the line for ‘N/A No Dog’ whenever a member has specificed “No Dog” in the ‘Dog Breed’ field on their profile?

Yes, use bp_get_member_profile_data instead:

$dog_size = bp_get_member_profile_data('field=Dog Size'); 
if ( $dog_size != false ) echo $dog_size;
Skip to toolbar