Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Categorise Users by XProfile Field

@shanebp

Moderator

See this for an example of collecting user ids based on xprofile field:
https://codex.buddypress.org/developer/loops-reference/the-members-loop/

If you plan to use the members loop code, BP will reorder the members based on last_activity.
But you can preserve the order by using the user_ids field.
More info: https://codex.buddypress.org/developer/bp_user_query/#code-examples

You may be able to accomplish your task via bp_parse_args, but I’m not sure if you can preserve the order:
https://codex.buddypress.org/developer/using-bp_parse_args-to-filter-buddypress-template-loops/

Skip to toolbar