[buddypress-trac] [BuddyPress] #3159: bp_has_members search parameter defaults to all members if no match
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Tue Apr 19 22:04:31 UTC 2011
#3159: bp_has_members search parameter defaults to all members if no match
-----------------------+-----------------------------
Reporter: jmckenney | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version: 1.3
Keywords: members |
-----------------------+-----------------------------
I'm trying to search members based upon profile data. bp_has_members has a
fantastic search parameter for this ability but when it doesn't match
anything, all members are shown. When it does match, it only shows the
correct members...
if (bp_has_members(array('search_terms' => $profile_string_var))) {
while ( bp_members() ) {
bp_the_member();
...
--
Ticket URL: <https://trac.buddypress.org/ticket/3159>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list