bp_has_members() function parameters
-
I need to have a members list in members directory (and so in profile search results for which I’m using BP Profile Search plugin) ordered by “popular”. I din’t find any plugin to do it. But I had a look at http://codex.buddypress.org/developer/developer-docs/loops-reference/the-members-loop/ and I see:
Accepted Parameters
The bp_has_members() function will accept a number of parameters that will manipulate the data being returned.
type optional – Defines the type of users to return.
Accepted arguments: active, newest, popular, online, alphabetical, random
Default value: activeSo I think that I have to add “popular” to default types (last active, latest registered) and set it as default value.
I don’t know PHP, just HTML, so I really don’t Know what I have to Write and where.
Could anybody help me please?
It would be really very important to me!
Thank you very much!
I’m using WordPress 3.4.2 and Buddypress 1.5.6
You must be logged in to reply to this topic.