How to search more than one member field
-
Howdy,
I’m trying to create a custom page template that searches and lists members based on certain criteria which are being passed to the has_members() loop to see if there are any that match field1 AND either field2 OR field3Here’s what I have so far:
<?php if ( bp_has_members( ‘search_terms=” ‘ . $member_profile_field1 . ‘ ” && ” ‘ . $member_profile_field2 . ‘ ” || ” ‘ . $member_profile_field3 . ‘ ” ‘ ) ) : ?>
<?php while ( bp_members() ) : bp_the_member(); ?>
<a href=”<?php bp_member_permalink() ?>”><?php bp_member_name() ?>
<?php endwhile; ?>
<?php endif; ?>Is this even possible?
Thanks!
Dana
- The topic ‘How to search more than one member field’ is closed to new replies.