[buddypress-trac] [BuddyPress Trac] #7742: bp_has_members( bp_ajax_querystring( 'members' )
buddypress-trac
noreply at wordpress.org
Fri Apr 6 14:58:00 UTC 2018
#7742: bp_has_members( bp_ajax_querystring( 'members' )
--------------------------+-----------------------------
Reporter: Venutius | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
Looking at the documentation here:
https://codex.buddypress.org/developer/loops-reference/the-members-loop/
It does not actually say how you would apply the arguments to this string.
The forum posts show you need to use &, so:
`bp_has_members( bp_ajax_querystring( 'members' ) .
'&per_page=20&type=alphabetical' ));'
Will return the members loop as alphabetical and with 20 members per page.
however,
`bp_has_members( bp_ajax_querystring( 'members' ) . '&type=alphabetical'
));'`
Does not produce an alphabetical list, in order to get that to work you
need to remove the `&`.
`'&exclude=3'` seems to have no affect at all.
Am I using this incorrectly? (since others seem to be able to get this to
work, in the past though I have a forum post with another user having the
same problem).
Either way I think it needs to be looked at, and the documentation updated
to explain the usage of the filter options, just so novices aren't looking
all over for a code snippet that actually works for them.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7742>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list