[buddypress-trac] [BuddyPress Trac] #5734: Members loop inside a BP profile only shows friends of the displayed users.

buddypress-trac noreply at wordpress.org
Wed Jul 2 12:28:09 UTC 2014


#5734: Members loop inside a BP profile only shows friends of the displayed users.
------------------------------------+----------------------
 Reporter:  CommonEasy              |       Owner:
     Type:  enhancement             |      Status:  closed
 Priority:  normal                  |   Milestone:
Component:  Members                 |     Version:  2.0
 Severity:  normal                  |  Resolution:  invalid
 Keywords:  needs-codex needs-docs  |
------------------------------------+----------------------
Changes (by boonebgorges):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 This behavior is by design. See
 https://buddypress.trac.wordpress.org/browser/tags/2.0.1/bp-members/bp-
 members-template.php#L277

 You can override it in your own template by adding 'user_id=0' to the
 params passed to `bp_has_members()`:

 {{{

 if ( bp_has_members( bp_ajax_querystring( 'members' ) .
 '&include=1,40&user_id=0' ) ) { //...

 }}}

 Please let me know if this doesn't work for you. And if you see fit,
 please feel free to add a note to http://codex.buddypress.org/developer
 /loops-reference/the-members-loop/ that explains the issue (probably under
 the `user_id` section)

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5734#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list