Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to search more than one member field

  • @drlaw

    Member

    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 field3

    Here’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

Viewing 1 replies (of 1 total)
  • @clem

    Member

    Hallo Dana,

    do you have any luck with your code. Can you search memebers on a certain criteria ?

    Cleboma

Viewing 1 replies (of 1 total)
  • The topic ‘How to search more than one member field’ is closed to new replies.
Skip to toolbar