problem in display order – bp_has_member
I’m having trouble showing the members of my social network through bp_has_members.
I need to display them in a specific order. For this I created a function that takes data from a table outside and BuddyPress stores ids of members and other information (called table “filter”).
This function returns the ids separated by comma.
So I use the optional attribute “include” inside the loop.
The explanation is a little complex, but I will show in practice. Looks like this:
if (bp_has_members (‘include =’. $ id. ‘& per_page = 30′)):
Where, example, $id = ’8, 9,3,2 ‘;
But the BuddyPress rearranges the display order of the members this way:
I need it to display the members in order that I sent:
Can anyone help me solve this? Thank you.
The topic ‘problem in display order – bp_has_member’ is closed to new replies.